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

Skip to content

Commit 1804254

Browse files
[Doc]: Document the position parameter in apply_aspect() #23583
1 parent 5b5cc0e commit 1804254

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lib/matplotlib/axes/_base.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1859,6 +1859,12 @@ def apply_aspect(self, position=None):
18591859
"""
18601860
Adjust the Axes for a specified data aspect ratio.
18611861
1862+
Parameters
1863+
----------
1864+
position : None or .Bbox
1865+
Possible values:
1866+
- If not ``None`, this defines the position of the Axes within the figure as a Bbox. See `.get_position` for further details.
1867+
18621868
Depending on `.get_adjustable` this will modify either the
18631869
Axes box (position) or the view limits. In the former case,
18641870
`~matplotlib.axes.Axes.get_anchor` will affect the position.

0 commit comments

Comments
 (0)