Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/matplotlib/matplotlib
/ test_TwoSlopeNorm_scale
Function
test_TwoSlopeNorm_scale
lib/matplotlib/tests/test_colors.py:661–665 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
659
660
661
def
test_TwoSlopeNorm_scale():
662
norm = mcolors.TwoSlopeNorm(2)
663
assert norm.scaled() is False
664
norm([1, 2, 3, 4])
665
assert norm.scaled() is True
666
667
668
def
test_TwoSlopeNorm_scaleout_center():
Callers
nothing calls this directly
Calls
2
norm
Function · 0.85
scaled
Method · 0.45
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…