Skip to content

Commit 9b17ee6

Browse files
timhoffmmeeseeksmachine
authored andcommitted
Backport PR matplotlib#32087: DOC: Fixing typo in units documentation for pyplot figuresize units
1 parent 121eeeb commit 9b17ee6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/matplotlib/pyplot.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -946,9 +946,9 @@ def figure(
946946
figsize : (float, float) or (float, float, str), default: :rc:`figure.figsize`
947947
The figure dimensions. This can be
948948
949-
- a tuple ``(width, height, unit)``, where *unit* is one of "inch", "cm",
949+
- a tuple ``(width, height, unit)``, where *unit* is one of "in", "cm",
950950
"px".
951-
- a tuple ``(x, y)``, which is interpreted as ``(x, y, "inch")``.
951+
- a tuple ``(x, y)``, which is interpreted as ``(x, y, "in")``.
952952
953953
One of *width* or *height* may be ``None``; the respective value is taken
954954
from :rc:`figure.figsize`.

0 commit comments

Comments
 (0)