Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
jklymak committed Jan 5, 2021
1 parent 1c043b7 commit 1f91fcf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/matplotlib/tests/test_colors.py
Expand Up @@ -545,6 +545,8 @@ def inverse(x):
norm = mcolors.FuncNorm((forward, inverse), vmin=0.1, vmax=10)
lognorm = mcolors.LogNorm(vmin=0.1, vmax=10)
assert_array_almost_equal(norm([0.2, 5, 10]), lognorm([0.2, 5, 10]))
assert_array_almost_equal(norm.inverse(np.array([0.2, 5, 10])),
lognorm.inverse(np.array([0.2, 5, 10])))


def test_TwoSlopeNorm_autoscale():
Expand Down

0 comments on commit 1f91fcf

Please sign in to comment.