(self, A)
| 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 |