Skip to content

Commit 627a281

Browse files
committed
TST: add test for re-normalizing image
1 parent 17de520 commit 627a281

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

lib/matplotlib/tests/test_colorbar.py

+2-4
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
@@ -416,11 +415,10 @@ def test_colorbar_log_minortick_labels():
416415

417416

418417
def test_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)