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

Skip to content

Commit b5d2c9e

Browse files
authored
Merge pull request #31314 from rcomer/set_position-active-doc
DOC: setting active axes position is ineffective
2 parents 5d0a4f5 + 486efee commit b5d2c9e

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

lib/matplotlib/axes/_base.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1179,6 +1179,15 @@ def set_position(self, pos, which='both'):
11791179
which : {'both', 'active', 'original'}, default: 'both'
11801180
Determines which position variables to change.
11811181
1182+
.. note::
1183+
This parameter is considered internal. End users should not use it.
1184+
1185+
For native Matplotlib `.Axes`, the active position is
1186+
determined by a combination of the original position and the
1187+
aspect ratio. Any active position set by the user will therefore be
1188+
overwritten by internal handling. This option is retained as it may be
1189+
relevant for some third party `.Axes` subclasses.
1190+
11821191
See Also
11831192
--------
11841193
matplotlib.transforms.Bbox.from_bounds

0 commit comments

Comments
 (0)