FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Add test for colorbar extend alpha by oscargus · Pull Request #24344 · matplotlib/matplotlib · GitHub

Repository navigation

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension .png  (1) .py  (1) All 2 file types selected
Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Viewer requires iframe.
8 changes: 8 additions & 0 deletions lib/matplotlib/tests/test_colorbar.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -1124,6 +1124,14 @@ def test_colorbar_set_formatter_locator():
assert cb.ax.yaxis.get_minor_formatter() is fmt


@image_comparison(['colorbar_extend_alpha.png'], remove_text=True,
savefig_kwarg={'dpi': 40})
def test_colorbar_extend_alpha():
fig, ax = plt.subplots()
im = ax.imshow([[0, 1], [2, 3]], alpha=0.3, interpolation="none")
fig.colorbar(im, extend='both', boundaries=[0.5, 1.5, 2.5])


def test_offset_text_loc():
plt.style.use('mpl20')
fig, ax = plt.subplots()
Expand Down

Back | FazBrowse Home | New Git URL