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

Method set_default_intervals

lib/matplotlib/axis.py:2964–2975  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2962 return self.axes.dataLim.minposy
2963
2964 def set_default_intervals(self):
2965 # docstring inherited
2966 # only change view if dataLim has not changed and user has
2967 # not changed the view:
2968 if (not self.axes.dataLim.mutatedy() and
2969 not self.axes.viewLim.mutatedy()):
2970 if self._converter is not None:
2971 info = self._converter.axisinfo(self.units, self)
2972 if info.default_limits is not None:
2973 ymin, ymax = self.convert_units(info.default_limits)
2974 self.axes.viewLim.intervaly = ymin, ymax
2975 self.stale = True
2976
2977 def get_tick_space(self):
2978 ends = mtransforms.Bbox.unit().transformed(

Callers

nothing calls this directly

Calls 3

mutatedyMethod · 0.80
convert_unitsMethod · 0.80
axisinfoMethod · 0.45

Tested by

no test coverage detected