Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2aeb227 commit b86ebbaCopy full SHA for b86ebba
galleries/users_explain/axes/autoscale.py
@@ -29,12 +29,15 @@
29
# %%
30
# Margins
31
# -------
32
-# The default margin around the data limits is 5%:
+# 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`:
35
36
print(ax.margins())
37
38
-# 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`:
41
42
fig, ax = plt.subplots()
43
ax.plot(x, y)
0 commit comments