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

Method autoscale_None

lib/matplotlib/colors.py:2672–2684  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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 """

Callers 3

__call__Method · 0.95

Calls 1

autoscale_NoneMethod · 0.45