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

Function test_TwoSlopeNorm_autoscale

lib/matplotlib/tests/test_colors.py:640–644  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

638
639
640def test_TwoSlopeNorm_autoscale():
641 norm = mcolors.TwoSlopeNorm(vcenter=20)
642 norm.autoscale([10, 20, 30, 40])
643 assert norm.vmin == 10.
644 assert norm.vmax == 40.
645
646
647def test_TwoSlopeNorm_autoscale_None_vmin():

Callers

nothing calls this directly

Calls 1

autoscaleMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…