Skip to content

Commit 2e00dc0

Browse files
authored
Merge pull request #19913 from timhoffm/doc-set_aspect
Minor docstring improvement for set_aspect()
2 parents 9d25f21 + a025710 commit 2e00dc0

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
@@ -1579,24 +1579,20 @@ def set_aspect(self, aspect, adjustable=None, anchor=None, share=False):
15791579
15801580
Parameters
15811581
----------
1582-
aspect : {'auto'} or num
1582+
aspect : {'auto', 'equal'} or float
15831583
Possible values:
15841584
1585-
======== =================================================
1586-
value description
1587-
======== =================================================
1588-
'auto' automatic; fill the position rectangle with data.
1589-
num a circle will be stretched such that the height
1590-
is *num* times the width. 'equal' is a synonym
1591-
for ``aspect=1``, i.e. same scaling for x and y.
1592-
======== =================================================
1585+
- 'auto': fill the position rectangle with data.
1586+
- 'equal': same as ``aspect=1``, i.e. same scaling for x and y.
1587+
- *float*: A circle will be stretched such that the height
1588+
is *float* times the width.
15931589
15941590
adjustable : None or {'box', 'datalim'}, optional
15951591
If not ``None``, this defines which parameter will be adjusted to
15961592
meet the required aspect. See `.set_adjustable` for further
15971593
details.
15981594
1599-
anchor : None or str or 2-tuple of float, optional
1595+
anchor : None or str or (float, float), optional
16001596
If not ``None``, this defines where the Axes will be drawn if there
16011597
is extra space due to aspect constraints. The most common way to
16021598
to specify the anchor are abbreviations of cardinal directions:

0 commit comments

Comments
 (0)