8000 DOC: added bounds and more description to margins by story645 · Pull Request #10490 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content

DOC: added bounds and more description to margins #10490

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 16, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 8 additions & 5 deletions lib/matplotlib/axes/_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -2320,11 +2320,14 @@ def margins(self, *args, **kw):

All three forms above set the xmargin and ymargin parameters.
All keyword parameters are optional. A single argument
specifies both xmargin and ymargin. The *tight* parameter
is passed to :meth:`autoscale_view`, which is executed after
a margin is changed; the default here is *True*, on the
assumption that when margins are specified, no additional
padding to match tick marks is usually desired. Setting
specifies both xmargin and ymargin. The padding added to the end of
each interval is *margin* times the data interval. The *margin* must
be a float in the range [0, 1].

The *tight* parameter is passed to :meth:`autoscale_view`
, which is executed after a margin is changed; the default here is
*True*, on the assumption that when margins are specified, no
additional padding to match tick marks is usually desired. Setting
*tight* to *None* will preserve the previous setting.

Specifying any margin changes only the autoscaling; for example,
Expand Down
0