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 d953067

Browse filesBrowse files
committed
Fix tests
1 parent 585cf56 commit d953067
Copy full SHA for d953067

File tree

Expand file treeCollapse file tree

1 file changed

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

1 file changed

+2
-2
lines changed

‎lib/matplotlib/tests/test_colors.py

Copy file name to clipboardExpand all lines: lib/matplotlib/tests/test_colors.py
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -666,15 +666,15 @@ def test_TwoSlopeNorm_scaleout_center():
666666
# test the vmin never goes above vcenter
667667
norm = mcolors.TwoSlopeNorm(vcenter=0)
668668
norm([1, 2, 3, 5])
669-
assert norm.vmin == 0
669+
assert norm.vmin == -5
670670
assert norm.vmax == 5
671671

672672

673673
def test_TwoSlopeNorm_scaleout_center_max():
674674
# test the vmax never goes below vcenter
675675
norm = mcolors.TwoSlopeNorm(vcenter=0)
676676
norm([-1, -2, -3, -5])
677-
assert norm.vmax == 0
677+
assert norm.vmax == 5
678678
assert norm.vmin == -5
679679

680680

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.