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

Skip to content

Commit d953067

Browse files
committed
Fix tests
1 parent 585cf56 commit d953067

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/matplotlib/tests/test_colors.py

Lines 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)