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

Method autoscale_None

lib/matplotlib/colors.py:2588–2600  ·  view source on GitHub ↗
(self, A)

Source from the content-addressed store, hash-verified

2586 self._changed()
2587
2588 def autoscale_None(self, A):
2589 # docstring inherited
2590 A = np.asanyarray(A)
2591
2592 if isinstance(A, np.ma.MaskedArray):
2593 # we need to make the distinction between an array, False, np.bool_(False)
2594 if A.mask is False or not A.mask.shape:
2595 A = A.data
2596
2597 if self.vmin is None and A.size:
2598 self.vmin = A.min()
2599 if self.vmax is None and A.size:
2600 self.vmax = A.max()
2601
2602 def scaled(self):
2603 # docstring inherited

Callers 2

__call__Method · 0.95
autoscaleMethod · 0.95

Calls 2

minMethod · 0.80
maxMethod · 0.80

Tested by

no test coverage detected