Get vmin and vmax. If vcenter isn't in the range [vmin, vmax], either vmin or vmax is expanded so that vcenter lies in the middle of the modified range [vmin, vmax].
(self, A)
| 2670 | self._changed() |
| 2671 | |
| 2672 | def autoscale_None(self, A): |
| 2673 | """ |
| 2674 | Get vmin and vmax. |
| 2675 | |
| 2676 | If vcenter isn't in the range [vmin, vmax], either vmin or vmax |
| 2677 | is expanded so that vcenter lies in the middle of the modified range |
| 2678 | [vmin, vmax]. |
| 2679 | """ |
| 2680 | super().autoscale_None(A) |
| 2681 | if self.vmin >= self.vcenter: |
| 2682 | self.vmin = self.vcenter - (self.vmax - self.vcenter) |
| 2683 | if self.vmax <= self.vcenter: |
| 2684 | self.vmax = self.vcenter + (self.vcenter - self.vmin) |
| 2685 | |
| 2686 | def __call__(self, value, clip=None): |
| 2687 | """ |