Support millimeters as figsize unit. by anntzer · Pull Request #32124 · matplotlib/matplotlib · GitHub
Skip to content

Support millimeters as figsize unit. - #32124

Merged
timhoffm merged 1 commit into
matplotlib:mainfrom
anntzer:figsize-mm
Jul 27, 2026
Merged

timhoffm merged 1 commit into
matplotlib:mainfrom
anntzer:figsize-mm

Conversation

@anntzer

@anntzer anntzer commented Jul 26, 2026

Copy link
Copy Markdown
Contributor

Figure size limits are often given in millimeters (e.g., the Nature Reviews guidelines give a maximum of 180mm x 215mm); supporting them is cheap now that the machinery is already present, and removes a minor potential stumbling point.

Note: doc build fails because the tooling to handle next_whats_new was removed in preparation of 3.11 release and apparently not restored yet (so the whatsnew from this PR is dangling); I assume this will be fixed separately.

PR summary

AI Disclosure

PR checklist

@anntzer
anntzer force-pushed the figsize-mm branch 2 times, most recently from c1e85be to 412b4a1 Compare July 26, 2026 21:19
Comment thread doc/release/next_whats_new/figsize-mm.rst

@timhoffm timhoffm left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Figure size limits are often given in millimeters (e.g., the Nature
Reviews guidelines give a maximum of 180mm x 215mm); supporting them
is cheap now that the machinery is already present, and removes a minor
potential stumbling point.
@anntzer

anntzer commented Jul 27, 2026

Copy link
Copy Markdown
Contributor Author

@timhoffm timhoffm added this to the v3.12.0 milestone Jul 27, 2026
@timhoffm
timhoffm merged commit 97193c6 into matplotlib:main Jul 27, 2026
39 of 41 checks passed
@anntzer
anntzer deleted the figsize-mm branch July 27, 2026 20:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants