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

Skip to content

Commit 526cb71

Browse files
committed
Include midpoint in tests
1 parent d953067 commit 526cb71

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
@@ -665,15 +665,15 @@ def test_TwoSlopeNorm_scale():
665665
def test_TwoSlopeNorm_scaleout_center():
666666
# test the vmin never goes above vcenter
667667
norm = mcolors.TwoSlopeNorm(vcenter=0)
668-
norm([1, 2, 3, 5])
668+
norm([0, 1, 2, 3, 5])
669669
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)
676-
norm([-1, -2, -3, -5])
676+
norm([0, -1, -2, -3, -5])
677677
assert norm.vmax == 5
678678
assert norm.vmin == -5
679679

0 commit comments

Comments
 (0)