Title: [Doc]: Add guidance how to deal with unstable text rendering in downstream tests (such as the changes in 3.11.0rc1) · Issue #31575 · matplotlib/matplotlib · GitHub
Open Graph Title: [Doc]: Add guidance how to deal with unstable text rendering in downstream tests (such as the changes in 3.11.0rc1) · Issue #31575 · matplotlib/matplotlib
X Title: [Doc]: Add guidance how to deal with unstable text rendering in downstream tests (such as the changes in 3.11.0rc1) · Issue #31575 · matplotlib/matplotlib
Description: Bug summary Hi, using matplotlib.testing.setup() on 3.11.0rc1, I get changes in the font rendering compared to 3.10.9, breaking our plotting tests. How can I get the same rendering on both versions? I’m happy to change the reference imag...
Open Graph Description: Bug summary Hi, using matplotlib.testing.setup() on 3.11.0rc1, I get changes in the font rendering compared to 3.10.9, breaking our plotting tests. How can I get the same rendering on both versions...
X Description: Bug summary Hi, using matplotlib.testing.setup() on 3.11.0rc1, I get changes in the font rendering compared to 3.10.9, breaking our plotting tests. How can I get the same rendering on both versions...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/31575
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[Doc]: Add guidance how to deal with unstable text rendering in downstream tests (such as the changes in 3.11.0rc1)","articleBody":"### Bug summary\n\nHi, using `matplotlib.testing.setup()` on 3.11.0rc1, I get changes in the font rendering compared to 3.10.9, breaking our plotting tests.\n\nHow can I get the same rendering on both versions? I’m happy to change the reference images, but I need to unify the rendering somehow.\n\n### Code for reproduction\n\n```Python\nimport matplotlib.pyplot as plt\nfrom matplotlib.testing import setup\n\nsetup()\n\nplt.figure(figsize=(4, 1))\nplt.plot(range(3))\nplt.yticks(range(3), [\"Fib\", \"Flib\", \"Flob\"])\nplt.gcf()\n```\n\n### Actual outcome\n\nActually good kerning that I’m excited about seeing in the future!\n\n\u003cimg width=\"369\" height=\"122\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/cd7b4de3-304f-4728-9f90-5bd82974d50c\" /\u003e\n\n### Expected outcome\n\nBad kerning like in 3.10.9\n\n\u003cimg width=\"368\" height=\"122\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/799f8f2c-2643-4755-929e-8c2d2fa23eee\" /\u003e\n\n### Additional information\n\nSee [debug-data-hatch-test.pre.zip](https://github.com/user-attachments/files/27118704/debug-data-hatch-test.pre.zip) for failed test images\n\n### Operating system\n\nmacOS (images above come from there) and Ubuntu (test failures observed there)\n\n### Matplotlib Version\n\n3.11.0rc1\n\n### Matplotlib Backend\n\nAgg\n\n### Python version\n\n3.14.0\n\n### Jupyter version\n\n_No response_\n\n### Installation\n\nuv","author":{"url":"https://github.com/flying-sheep","@type":"Person","name":"flying-sheep"},"datePublished":"2026-04-27T08:59:58.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/31575/matplotlib/issues/31575"}
| 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:583a093e-684b-5a27-85f7-7e6efba14c3e |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 91F0:19A0FC:125731C:190D45A:6A521726 |
| html-safe-nonce | 9535f0b0da0fa860c511c13ade8e357b6ee2cc005bae6dffec02e6501c11b9ae |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MUYwOjE5QTBGQzoxMjU3MzFDOjE5MEQ0NUE6NkE1MjE3MjYiLCJ2aXNpdG9yX2lkIjoiODg2MDgwMjI1OTY5ODcxODUwMiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 04b84673d3e0e7773090da7bcac639a23737cbc3363033dbb151717e6ba97418 |
| hovercard-subject-tag | issue:4334445451 |
| 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/31575/issue_layout |
| twitter:image | https://opengraph.githubassets.com/a4ac19b8a7eb4fcfdf3d7d17453a27c016f48839a5a55cfbfb0ed083d71edbd8/matplotlib/matplotlib/issues/31575 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/a4ac19b8a7eb4fcfdf3d7d17453a27c016f48839a5a55cfbfb0ed083d71edbd8/matplotlib/matplotlib/issues/31575 |
| og:image:alt | Bug summary Hi, using matplotlib.testing.setup() on 3.11.0rc1, I get changes in the font rendering compared to 3.10.9, breaking our plotting tests. How can I get the same rendering on both versions... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | flying-sheep |
| 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