diff --git a/galleries/users_explain/axes/autoscale.py b/galleries/users_explain/axes/autoscale.py index fef68f2515d9..a9d6b728866c 100644 --- a/galleries/users_explain/axes/autoscale.py +++ b/galleries/users_explain/axes/autoscale.py @@ -29,12 +29,15 @@ # %% # Margins # ------- -# The default margin around the data limits is 5%: +# The default margin around the data limits is 5%, which is based on the +# default configuration setting of :rc:`axes.xmargin`, :rc:`axes.ymargin`, +# and :rc:`axes.zmargin`: print(ax.margins()) # %% -# The margins can be made larger using `~matplotlib.axes.Axes.margins`: +# The margin size can be overridden to make them smaller or larger using +# `~matplotlib.axes.Axes.margins`: fig, ax = plt.subplots() ax.plot(x, y)
Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.
Alternative Proxies: