Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit634f9ed

Browse files
authored
Merge pull request#24346 from meeseeksmachine/auto-backport-of-pr-24344-on-v3.6.x
Backport PR#24344 on branch v3.6.x (Add test for colorbar extend alpha)
2 parents68f0694 +a7ddd38 commit634f9ed

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

‎lib/matplotlib/tests/test_colorbar.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1124,6 +1124,14 @@ def test_colorbar_set_formatter_locator():
11241124
assertcb.ax.yaxis.get_minor_formatter()isfmt
11251125

11261126

1127+
@image_comparison(['colorbar_extend_alpha.png'],remove_text=True,
1128+
savefig_kwarg={'dpi':40})
1129+
deftest_colorbar_extend_alpha():
1130+
fig,ax=plt.subplots()
1131+
im=ax.imshow([[0,1], [2,3]],alpha=0.3,interpolation="none")
1132+
fig.colorbar(im,extend='both',boundaries=[0.5,1.5,2.5])
1133+
1134+
11271135
deftest_offset_text_loc():
11281136
plt.style.use('mpl20')
11291137
fig,ax=plt.subplots()

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp