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

Skip to content

Commit 1647f4d

Browse files
authored
Merge pull request #19921 from meeseeksmachine/auto-backport-of-pr-19913-on-v3.4.x
Backport PR #19913 on branch v3.4.x (Minor docstring improvement for set_aspect())
2 parents b96f885 + 622c64a commit 1647f4d

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

lib/matplotlib/axes/_base.py

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1422,24 +1422,20 @@ def set_aspect(self, aspect, adjustable=None, anchor=None, share=False):
14221422
14231423
Parameters
14241424
----------
1425-
aspect : {'auto'} or num
1425+
aspect : {'auto', 'equal'} or float
14261426
Possible values:
14271427
1428-
======== =================================================
1429-
value description
1430-
======== =================================================
1431-
'auto' automatic; fill the position rectangle with data.
1432-
num a circle will be stretched such that the height
1433-
is *num* times the width. 'equal' is a synonym
1434-
for ``aspect=1``, i.e. same scaling for x and y.
1435-
======== =================================================
1428+
- 'auto': fill the position rectangle with data.
1429+
- 'equal': same as ``aspect=1``, i.e. same scaling for x and y.
1430+
- *float*: A circle will be stretched such that the height
1431+
is *float* times the width.
14361432
14371433
adjustable : None or {'box', 'datalim'}, optional
14381434
If not ``None``, this defines which parameter will be adjusted to
14391435
meet the required aspect. See `.set_adjustable` for further
14401436
details.
14411437
1442-
anchor : None or str or 2-tuple of float, optional
1438+
anchor : None or str or (float, float), optional
14431439
If not ``None``, this defines where the Axes will be drawn if there
14441440
is extra space due to aspect constraints. The most common way to
14451441
to specify the anchor are abbreviations of cardinal directions:

0 commit comments

Comments
 (0)