Test that lists work, and that the inverse works
()
| 517 | |
| 518 | |
| 519 | def test_LogNorm_inverse(): |
| 520 | """ |
| 521 | Test that lists work, and that the inverse works |
| 522 | """ |
| 523 | norm = mcolors.LogNorm(vmin=0.1, vmax=10) |
| 524 | assert_array_almost_equal(norm([0.5, 0.4]), [0.349485, 0.30103]) |
| 525 | assert_array_almost_equal([0.5, 0.4], norm.inverse([0.349485, 0.30103])) |
| 526 | assert_array_almost_equal(norm(0.4), [0.30103]) |
| 527 | assert_array_almost_equal([0.4], norm.inverse([0.30103])) |
| 528 | |
| 529 | |
| 530 | def test_PowerNorm(): |