@@ -2787,6 +2787,13 @@ def set_autoscale_on(self, b):
27872787 Parameters
27882788 ----------
27892789 b : bool
2790+
2791+ See Also
2792+ --------
2793+ :ref:`autoscale`
2794+ matplotlib.axes.Axes.autoscale
2795+ matplotlib.axes.Axes.set_autoscalex_on
2796+ matplotlib.axes.Axes.set_autoscaley_on
27902797 """
27912798 for axis in self ._axis_map .values ():
27922799 axis ._set_autoscale_on (b )
@@ -2825,6 +2832,7 @@ def get_xmargin(self):
28252832
28262833 See Also
28272834 --------
2835+ :ref:`autoscale_margins`
28282836 matplotlib.axes.Axes.set_xmargin
28292837 """
28302838 return self ._xmargin
@@ -2841,6 +2849,7 @@ def get_ymargin(self):
28412849
28422850 See Also
28432851 --------
2852+ :ref:`autoscale_margins`
28442853 matplotlib.axes.Axes.set_ymargin
28452854 """
28462855 return self ._ymargin
@@ -2860,6 +2869,13 @@ def set_xmargin(self, m):
28602869 Parameters
28612870 ----------
28622871 m : float greater than -0.5
2872+
2873+ See Also
2874+ --------
2875+ :ref:`autoscale_margins`
2876+ matplotlib.axes.Axes.margins
2877+ matplotlib.axes.Axes.get_xmargin
2878+
28632879 """
28642880 if m <= - 0.5 :
28652881 raise ValueError ("margin must be greater than -0.5" )
@@ -2882,6 +2898,12 @@ def set_ymargin(self, m):
28822898 Parameters
28832899 ----------
28842900 m : float greater than -0.5
2901+
2902+ See Also
2903+ --------
2904+ :ref:`autoscale_margins`
2905+ matplotlib.axes.Axes.margins
2906+ matplotlib.axes.Axes.get_ymargin
28852907 """
28862908 if m <= - 0.5 :
28872909 raise ValueError ("margin must be greater than -0.5" )
@@ -2945,6 +2967,7 @@ def margins(self, *margins, x=None, y=None, tight=True):
29452967
29462968 See Also
29472969 --------
2970+ :ref:`autoscale_margins`
29482971 .Axes.set_xmargin, .Axes.set_ymargin
29492972 """
29502973
@@ -2999,10 +3022,12 @@ def autoscale(self, enable=True, axis='both', tight=None):
29993022 """
30003023 Autoscale the axis view to the data (toggle).
30013024
3002- Convenience method for simple axis view autoscaling.
3003- It turns autoscaling on or off, and then,
3004- if autoscaling for either axis is on, it performs
3005- the autoscaling on the specified axis or Axes.
3025+ Convenience method for simple axis view autoscaling. This does:
3026+
3027+ - Turn autoscaling on or off (`~.axes.Axes.set_autoscalex_on` /
3028+ `~.axes.Axes.set_autoscaley_on`).
3029+ - Ensure that view limits will get updated when needed. - As view limits
3030+ are lazy-updated, this technically marks the view limits as stale.
30063031
30073032 Parameters
30083033 ----------
@@ -3016,6 +3041,13 @@ def autoscale(self, enable=True, axis='both', tight=None):
30163041 If True, first set the margins to zero. Then, this argument is
30173042 forwarded to `~.axes.Axes.autoscale_view` (regardless of
30183043 its value); see the description of its behavior there.
3044+
3045+ See Also
3046+ --------
3047+ :ref:`autoscale`
3048+ matplotlib.axes.Axes.set_autoscale_on
3049+ matplotlib.axes.Axes.set_autoscalex_on
3050+ matplotlib.axes.Axes.set_autoscaley_on
30193051 """
30203052 if enable is None :
30213053 scalex = True
@@ -3065,7 +3097,7 @@ def autoscale_view(self, tight=None, scalex=True, scaley=True):
30653097
30663098 scaley : bool, default: True
30673099 Whether to autoscale the y-axis.
3068-
3100+
30693101 Notes
30703102 -----
30713103 The autoscaling preserves any preexisting axis direction reversal.
0 commit comments