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

Method set_default_intervals

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

Source from the content-addressed store, hash-verified

2732 return self.axes.dataLim.minposx
2733
2734 def set_default_intervals(self):
2735 # docstring inherited
2736 # only change view if dataLim has not changed and user has
2737 # not changed the view:
2738 if (not self.axes.dataLim.mutatedx() and
2739 not self.axes.viewLim.mutatedx()):
2740 if self._converter is not None:
2741 info = self._converter.axisinfo(self.units, self)
2742 if info.default_limits is not None:
2743 xmin, xmax = self.convert_units(info.default_limits)
2744 self.axes.viewLim.intervalx = xmin, xmax
2745 self.stale = True
2746
2747 def get_tick_space(self):
2748 ends = mtransforms.Bbox.unit().transformed(

Callers

nothing calls this directly

Calls 3

mutatedxMethod · 0.80
convert_unitsMethod · 0.80
axisinfoMethod · 0.45

Tested by

no test coverage detected