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

Method autoscale

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

Source from the content-addressed store, hash-verified

2577 return vmin + value * (vmax - vmin)
2578
2579 def autoscale(self, A):
2580 # docstring inherited
2581 with self.callbacks.blocked():
2582 # Pause callbacks while we are updating so we only get
2583 # a single update signal at the end
2584 self.vmin = self.vmax = None
2585 self.autoscale_None(A)
2586 self._changed()
2587
2588 def autoscale_None(self, A):
2589 # docstring inherited

Callers 1

test_norm_callbackFunction · 0.95

Calls 3

autoscale_NoneMethod · 0.95
blockedMethod · 0.80
_changedMethod · 0.45

Tested by 1

test_norm_callbackFunction · 0.76