Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e891183

Browse files
committed
TST: add test for re-normalizing image
1 parent b3bbb80 commit e891183

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
from matplotlib.ticker import LogLocator, LogFormatter
1111

1212

13-
1413
def _get_cmap_norms():
1514
"""
1615
Define a colormap and appropriate norms for each of the four
@@ -401,11 +400,10 @@ def test_colorbar_axes_kw():
401400

402401

403402
def test_colorbar_renorm():
404-
x,y = np.ogrid[-4:4:31j,-4:4:31j]
405-
z = 120000*np.exp(-x**2-y**2)
403+
x,y = np.ogrid[-4:4:31j, -4:4:31j]
404+
z = 120000*np.exp(-x**2 - y**2)
406405

407406
fig, ax = plt.subplots()
408-
409407
im = ax.imshow(z)
410408
cbar = fig.colorbar(im)
411409

0 commit comments

Comments
 (0)