MCPcopy
hub / github.com/matplotlib/matplotlib / _set_autoscale_on

Method _set_autoscale_on

lib/matplotlib/axis.py:853–873  ·  view source on GitHub ↗

Set whether this Axis is autoscaled when drawing or by `.Axes.autoscale_view`. If b is None, then the value is not changed. Parameters ---------- b : bool See Also -------- matplotlib.axes.Axes.autoscale matplotlib.axes.Axes

(self, b)

Source from the content-addressed store, hash-verified

851 return self._autoscale_on
852
853 def _set_autoscale_on(self, b):
854 """
855 Set whether this Axis is autoscaled when drawing or by `.Axes.autoscale_view`.
856
857 If b is None, then the value is not changed.
858
859 Parameters
860 ----------
861 b : bool
862
863 See Also
864 --------
865 matplotlib.axes.Axes.autoscale
866 matplotlib.axes.Axes.set_autoscale_on
867 matplotlib.axes.Axes.get_autoscalex_on
868 matplotlib.axes.Axes.set_autoscalex_on
869 matplotlib.axes.Axes.get_autoscaley_on
870 matplotlib.axes.Axes.set_autoscaley_on
871 """
872 if b is not None:
873 self._autoscale_on = b
874
875 def get_children(self):
876 return [self.label, self.offsetText,

Callers 2

_set_limMethod · 0.95
set_autoscale_onMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected