Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d0366da

Browse files
authored
Merge pull request #10493 from matplotlib/auto-backport-of-pr-10490
Backport PR #10490 on branch v2.2.x
2 parents 5acf7d8 + fbf4008 commit d0366da

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

lib/matplotlib/axes/_base.py

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2320,11 +2320,14 @@ def margins(self, *args, **kw):
23202320
23212321
All three forms above set the xmargin and ymargin parameters.
23222322
All keyword parameters are optional. A single argument
2323-
specifies both xmargin and ymargin. The *tight* parameter
2324-
is passed to :meth:`autoscale_view`, which is executed after
2325-
a margin is changed; the default here is *True*, on the
2326-
assumption that when margins are specified, no additional
2327-
padding to match tick marks is usually desired. Setting
2323+
specifies both xmargin and ymargin. The padding added to the end of
2324+
each interval is *margin* times the data interval. The *margin* must
2325+
be a float in the range [0, 1].
2326+
2327+
The *tight* parameter is passed to :meth:`autoscale_view`
2328+
, which is executed after a margin is changed; the default here is
2329+
*True*, on the assumption that when margins are specified, no
2330+
additional padding to match tick marks is usually desired. Setting
23282331
*tight* to *None* will preserve the previous setting.
23292332
23302333
Specifying any margin changes only the autoscaling; for example,

0 commit comments

Comments
 (0)