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

Commit627a281

Browse files
committed
TST: add test for re-normalizing image
1 parent17de520 commit627a281

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

‎lib/matplotlib/tests/test_colorbar.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
frommatplotlib.tickerimportLogLocator,LogFormatter
1111

1212

13-
1413
def_get_cmap_norms():
1514
"""
1615
Define a colormap and appropriate norms for each of the four
@@ -416,11 +415,10 @@ def test_colorbar_log_minortick_labels():
416415

417416

418417
deftest_colorbar_renorm():
419-
x,y=np.ogrid[-4:4:31j,-4:4:31j]
420-
z=120000*np.exp(-x**2-y**2)
418+
x,y=np.ogrid[-4:4:31j,-4:4:31j]
419+
z=120000*np.exp(-x**2-y**2)
421420

422421
fig,ax=plt.subplots()
423-
424422
im=ax.imshow(z)
425423
cbar=fig.colorbar(im)
426424

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp