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

Class NoNorm

lib/matplotlib/colors.py:3328–3341  ·  view source on GitHub ↗

Dummy replacement for `Normalize`, for the case where we want to use indices directly in a `~matplotlib.cm.ScalarMappable`.

Source from the content-addressed store, hash-verified

3326
3327
3328class NoNorm(Normalize):
3329 """
3330 Dummy replacement for `Normalize`, for the case where we want to use
3331 indices directly in a `~matplotlib.cm.ScalarMappable`.
3332 """
3333 def __call__(self, value, clip=None):
3334 if np.iterable(value):
3335 return np.ma.array(value)
3336 return value
3337
3338 def inverse(self, value):
3339 if np.iterable(value):
3340 return np.ma.array(value)
3341 return value
3342
3343
3344class MultiNorm(Norm):

Callers 1

test_nonormFunction · 0.90

Calls

no outgoing calls

Tested by 1

test_nonormFunction · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…