Skip to content

Commit 1f91fcf

Browse files
committed
Fix test
1 parent 1c043b7 commit 1f91fcf

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/matplotlib/tests/test_colors.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -545,6 +545,8 @@ def inverse(x):
545545
norm = mcolors.FuncNorm((forward, inverse), vmin=0.1, vmax=10)
546546
lognorm = mcolors.LogNorm(vmin=0.1, vmax=10)
547547
assert_array_almost_equal(norm([0.2, 5, 10]), lognorm([0.2, 5, 10]))
548+
assert_array_almost_equal(norm.inverse(np.array([0.2, 5, 10])),
549+
lognorm.inverse(np.array([0.2, 5, 10])))
548550

549551

550552
def test_TwoSlopeNorm_autoscale():

0 commit comments

Comments
 (0)