MCPcopy
hub / github.com/matplotlib/matplotlib / _request_autoscale_view

Method _request_autoscale_view

lib/matplotlib/axes/_base.py:914–933  ·  view source on GitHub ↗

Mark a single axis, or all of them, as stale wrt. autoscaling. No computation is performed until the next autoscaling; thus, separate calls to control individual `Axis`s incur negligible performance cost. Parameters ---------- axis : str, default: "

(self, axis="all", tight=None)

Source from the content-addressed store, hash-verified

912 return self._viewLim
913
914 def _request_autoscale_view(self, axis="all", tight=None):
915 """
916 Mark a single axis, or all of them, as stale wrt. autoscaling.
917
918 No computation is performed until the next autoscaling; thus, separate
919 calls to control individual `Axis`s incur negligible performance cost.
920
921 Parameters
922 ----------
923 axis : str, default: "all"
924 Either an element of ``self._axis_names``, or "all".
925 tight : bool or None, default: None
926 """
927 axis_names = _api.getitem_checked(
928 {**{k: [k] for k in self._axis_names}, "all": self._axis_names},
929 axis=axis)
930 for name in axis_names:
931 self._stale_viewlims[name] = True
932 if tight is not None:
933 self._tight = tight
934
935 def _set_lim_and_transforms(self):
936 """

Callers 15

add_collectionMethod · 0.95
_unit_change_handlerMethod · 0.95
set_xmarginMethod · 0.95
set_ymarginMethod · 0.95
autoscaleMethod · 0.95
locator_paramsMethod · 0.95
set_zmarginMethod · 0.80
autoscaleMethod · 0.80
__init__Method · 0.80
axhlineMethod · 0.80
axvlineMethod · 0.80
axlineMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected