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

Appearance settings

Commit e891183

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

File tree

Expand file treeCollapse file tree

1 file changed

+2
-4
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-4
lines changed

‎lib/matplotlib/tests/test_colorbar.py

Copy file name to clipboardExpand all lines: lib/matplotlib/tests/test_colorbar.py
+2-4Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.