Set *halfrange* to ``max(abs(A-vcenter))``, then set *vmin* and *vmax*.
(self, A)
| 2765 | self.halfrange = halfrange |
| 2766 | |
| 2767 | def autoscale(self, A): |
| 2768 | """ |
| 2769 | Set *halfrange* to ``max(abs(A-vcenter))``, then set *vmin* and *vmax*. |
| 2770 | """ |
| 2771 | A = np.asanyarray(A) |
| 2772 | self.halfrange = max(self._vcenter-A.min(), |
| 2773 | A.max()-self._vcenter) |
| 2774 | |
| 2775 | def autoscale_None(self, A): |
| 2776 | """Set *vmin* and *vmax*.""" |
no test coverage detected