MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / test_lognorm_invalid

Function test_lognorm_invalid

lib/matplotlib/tests/test_colors.py:500–506  ·  view source on GitHub ↗
(vmin, vmax)

Source from the content-addressed store, hash-verified

498
499@pytest.mark.parametrize("vmin,vmax", [[-1, 2], [3, 1]])
500def test_lognorm_invalid(vmin, vmax):
501 # Check that invalid limits in LogNorm error
502 norm = mcolors.LogNorm(vmin=vmin, vmax=vmax)
503 with pytest.raises(ValueError):
504 norm(1)
505 with pytest.raises(ValueError):
506 norm.inverse(1)
507
508
509def test_LogNorm():

Callers

nothing calls this directly

Calls 2

normFunction · 0.85
inverseMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…