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

Method changed

lib/matplotlib/contour.py:966–980  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

964 return (lowers, uppers)
965
966 def changed(self):
967 if not hasattr(self, "cvalues"):
968 self._process_colors() # Sets cvalues.
969 # Force an autoscale immediately because self.to_rgba() calls
970 # autoscale_None() internally with the data passed to it,
971 # so if vmin/vmax are not set yet, this would override them with
972 # content from *cvalues* rather than levels like we want
973 self.norm.autoscale_None(self.levels)
974 self.set_array(self.cvalues)
975 self.update_scalarmappable()
976 alphas = np.broadcast_to(self.get_alpha(), len(self.cvalues))
977 for label, cv, alpha in zip(self.labelTexts, self.labelCValues, alphas):
978 label.set_alpha(alpha)
979 label.set_color(self.labelMappable.to_rgba(cv))
980 super().changed()
981
982 def _ensure_locator_exists(self, N):
983 """

Callers 1

__init__Method · 0.95

Calls 8

_process_colorsMethod · 0.95
update_scalarmappableMethod · 0.80
autoscale_NoneMethod · 0.45
set_arrayMethod · 0.45
get_alphaMethod · 0.45
set_alphaMethod · 0.45
set_colorMethod · 0.45
to_rgbaMethod · 0.45

Tested by

no test coverage detected