Skip to content

Commit b86ebba

Browse files
DOC: update/fix autoscaling documentation (#25656)
* Update autoscaling documentation * Update galleries/users_explain/axes/autoscale.py Co-authored-by: Elliott Sales de Andrade <quantum.analyst@gmail.com> * wrapped text to ensure lint checks passed --------- Co-authored-by: Elliott Sales de Andrade <quantum.analyst@gmail.com>
1 parent 2aeb227 commit b86ebba

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

galleries/users_explain/axes/autoscale.py

+5-2
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,15 @@
2929
# %%
3030
# Margins
3131
# -------
32-
# The default margin around the data limits is 5%:
32+
# The default margin around the data limits is 5%, which is based on the
33+
# default configuration setting of :rc:`axes.xmargin`, :rc:`axes.ymargin`,
34+
# and :rc:`axes.zmargin`:
3335

3436
print(ax.margins())
3537

3638
# %%
37-
# The margins can be made larger using `~matplotlib.axes.Axes.margins`:
39+
# The margin size can be overridden to make them smaller or larger using
40+
# `~matplotlib.axes.Axes.margins`:
3841

3942
fig, ax = plt.subplots()
4043
ax.plot(x, y)

0 commit comments

Comments
 (0)