From 9b17ee6112ce408df09f4b51878dbf74a30d555d Mon Sep 17 00:00:00 2001 From: Tim Hoffmann <2836374+timhoffm@users.noreply.github.com> Date: Wed, 22 Jul 2026 05:04:07 +0200 Subject: [PATCH] Backport PR #32087: DOC: Fixing typo in units documentation for pyplot figuresize units --- lib/matplotlib/pyplot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/matplotlib/pyplot.py b/lib/matplotlib/pyplot.py index 97fd1bc6209e..650ed5873203 100644 --- a/lib/matplotlib/pyplot.py +++ b/lib/matplotlib/pyplot.py @@ -946,9 +946,9 @@ def figure( figsize : (float, float) or (float, float, str), default: :rc:`figure.figsize` The figure dimensions. This can be - - a tuple ``(width, height, unit)``, where *unit* is one of "inch", "cm", + - a tuple ``(width, height, unit)``, where *unit* is one of "in", "cm", "px". - - a tuple ``(x, y)``, which is interpreted as ``(x, y, "inch")``. + - a tuple ``(x, y)``, which is interpreted as ``(x, y, "in")``. One of *width* or *height* may be ``None``; the respective value is taken from :rc:`figure.figsize`.