Title: [Doc]: Clarification of relative font sizes · Issue #30437 · matplotlib/matplotlib · GitHub
Open Graph Title: [Doc]: Clarification of relative font sizes · Issue #30437 · matplotlib/matplotlib
X Title: [Doc]: Clarification of relative font sizes · Issue #30437 · matplotlib/matplotlib
Description: Documentation Link https://matplotlib.org/devdocs/users/explain/text/text_props.html Problem The fontsize property mentions relative sizes ("e.g., 'smaller', 'x-large'"), but no full list of supported values or how they scale the default...
Open Graph Description: Documentation Link https://matplotlib.org/devdocs/users/explain/text/text_props.html Problem The fontsize property mentions relative sizes ("e.g., 'smaller', 'x-large'"), but no full list of suppor...
X Description: Documentation Link https://matplotlib.org/devdocs/users/explain/text/text_props.html Problem The fontsize property mentions relative sizes ("e.g., 'smaller', 'x-large'"), ...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/30437
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[Doc]: Clarification of relative font sizes","articleBody":"### Documentation Link\n\nhttps://matplotlib.org/devdocs/users/explain/text/text_props.html\n\n### Problem\n\n* The fontsize property mentions relative sizes (\"e.g., 'smaller', 'x-large'\"), but no full list of supported values or how they scale the default font size.\n* Relatedly, I find it confusing that `smaller`/`larger` exist when they are the same value as `small`/`large`.\n\n### Suggested improvement\n\n* Add a table or paragraph describing allowable relative font size strings and their scaling factor. They are defined here: https://github.com/matplotlib/matplotlib/blob/1c3e0438cb890fe12e91c73b3782cae3b87060a5/lib/matplotlib/font_manager.py#L55-L66\n* Deprecate `smaller`/`larger` in favor of `small`/`large`. It seems that they are a relic from pre-2007 when they were the only two supported relative sizes (see https://github.com/matplotlib/matplotlib/commit/ac5f19829d61f80a0987ee9089c1ff940f61378f).","author":{"url":"https://github.com/DominikStiller","@type":"Person","name":"DominikStiller"},"datePublished":"2025-08-16T18:45:21.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/30437/matplotlib/issues/30437"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:8fd031c2-da9e-4bfc-ed9e-bbfe6696d653 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AB44:16A191:1183E1D:17D3089:6A5213B2 |
| html-safe-nonce | abf2aed152d84b93e91e627477f6566de4f694efee44ddb6d484c7f51ecf1ef5 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQjQ0OjE2QTE5MToxMTgzRTFEOjE3RDMwODk6NkE1MjEzQjIiLCJ2aXNpdG9yX2lkIjoiMjEzMTExODMyNTQ0MjQxNzU4NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 5fdf8691ac5473c8e3ee609e0e7240c7159b32b29e55a586e4477d9cd6bd8150 |
| hovercard-subject-tag | issue:3327537282 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/matplotlib/matplotlib/30437/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ad68b15011e766043a96ec96e59b42ef6ea1a7769bd4f8f07d5f4e677010f88b/matplotlib/matplotlib/issues/30437 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ad68b15011e766043a96ec96e59b42ef6ea1a7769bd4f8f07d5f4e677010f88b/matplotlib/matplotlib/issues/30437 |
| og:image:alt | Documentation Link https://matplotlib.org/devdocs/users/explain/text/text_props.html Problem The fontsize property mentions relative sizes ("e.g., 'smaller', 'x-large'"), but no full list of suppor... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | DominikStiller |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| turbo-cache-control | no-preview |
| go-import | github.com/matplotlib/matplotlib git https://github.com/matplotlib/matplotlib.git |
| octolytics-dimension-user_id | 215947 |
| octolytics-dimension-user_login | matplotlib |
| octolytics-dimension-repository_id | 1385122 |
| octolytics-dimension-repository_nwo | matplotlib/matplotlib |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1385122 |
| octolytics-dimension-repository_network_root_nwo | matplotlib/matplotlib |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 7aed05249554b889eb33d002851a973eebcc7e91 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width