Title: [Bug]: pgf_rcupdate1 in test_backend_pgf.py::test_rcupdate fails for TeX Live 2026 · Issue #32505 · matplotlib/matplotlib · GitHub
Open Graph Title: [Bug]: pgf_rcupdate1 in test_backend_pgf.py::test_rcupdate fails for TeX Live 2026 · Issue #32505 · matplotlib/matplotlib
X Title: [Bug]: pgf_rcupdate1 in test_backend_pgf.py::test_rcupdate fails for TeX Live 2026 · Issue #32505 · matplotlib/matplotlib
Description: Bug summary When working on #32504 I tested the new baseline against TeX Live 2024, 2025, and 2026. When running the tests with TeX Live 2026 pgf_rcupdate1 failed. Code for reproduction ___________________________________________________...
Open Graph Description: Bug summary When working on #32504 I tested the new baseline against TeX Live 2024, 2025, and 2026. When running the tests with TeX Live 2026 pgf_rcupdate1 failed. Code for reproduction ___________...
X Description: Bug summary When working on #32504 I tested the new baseline against TeX Live 2024, 2025, and 2026. When running the tests with TeX Live 2026 pgf_rcupdate1 failed. Code for reproduction ___________...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/32505
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[Bug]: pgf_rcupdate1 in test_backend_pgf.py::test_rcupdate fails for TeX Live 2026","articleBody":"### Bug summary\n\nWhen working on #32504 I tested the new baseline against TeX Live 2024, 2025, and 2026. When running the tests with TeX Live 2026 `pgf_rcupdate1` failed.\n\n### Code for reproduction\n\n```Python\n__________________________________________________________________________________________ test_rcupdate __________________________________________________________________________________________\n\n @needs_pgf_xelatex\n @needs_pgf_pdflatex\n @mpl.style.context('default')\n @pytest.mark.backend('pgf')\n def test_rcupdate():\n rc_sets = [{'font.family': 'sans-serif',\n 'font.size': 30,\n 'figure.subplot.left': .2,\n 'lines.markersize': 10,\n 'pgf.rcfonts': False,\n 'pgf.texsystem': 'xelatex'},\n {'font.family': 'monospace',\n 'font.size': 10,\n 'figure.subplot.left': .1,\n 'hatch.color': 'orange',\n 'hatch.linewidth': 2,\n 'lines.markersize': 20,\n 'pgf.rcfonts': False,\n 'pgf.texsystem': 'pdflatex',\n 'pgf.preamble': ('\\\\usepackage[utf8x]{inputenc}'\n '\\\\usepackage[T1]{fontenc}'\n '\\\\usepackage{sfmath}')}]\n tol = [0, 13.2] if _old_gs_version else [0, 0]\n for i, rc_set in enumerate(rc_sets):\n with mpl.rc_context(rc_set):\n for substring, pkg in [('sfmath', 'sfmath'), ('utf8x', 'ucs')]:\n if (substring in mpl.rcParams['pgf.preamble']\n and not _has_tex_package(pkg)):\n pytest.skip(f'needs {pkg}.sty')\n create_figure()\n> compare_figure(f'pgf_rcupdate{i + 1}.pdf', tol=tol[i])\n\nlib/matplotlib/tests/test_backend_pgf.py:167: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _\n\nfname = 'pgf_rcupdate1.pdf', savefig_kwargs = {}, tol = 0\n\n def compare_figure(fname, savefig_kwargs={}, tol=0):\n actual = os.path.join(result_dir, fname)\n plt.savefig(actual, **savefig_kwargs)\n \n expected = os.path.join(result_dir, \"expected_%s\" % fname)\n shutil.copyfile(os.path.join(baseline_dir, fname), expected)\n err = compare_images(expected, actual, tol=tol)\n if err:\n> raise ImageComparisonFailure(err)\nE matplotlib.testing.exceptions.ImageComparisonFailure: Error: Image files did not match.\nE RMS Value: 1.0027234615164846\nE Expected: \nE /home/axelj/Documents/matplotlib/matplotlib/result_images/test_backend_pgf/expected_pgf_rcupdate1_pdf.png\nE Actual: \nE /home/axelj/Documents/matplotlib/matplotlib/result_images/test_backend_pgf/pgf_rcupdate1_pdf.png\nE Difference:\nE /home/axelj/Documents/matplotlib/matplotlib/result_images/test_backend_pgf/pgf_rcupdate1_pdf-failed-diff.png\nE Tolerance: \nE 0\n\nlib/matplotlib/tests/test_backend_pgf.py:37: ImageComparisonFailure\n```\n\n### Actual outcome\n\n\u003cimg width=\"461\" height=\"346\" alt=\"pgf_rcupdate1_pdf.png\" src=\"https://github.com/user-attachments/assets/90b455e4-994f-485e-8180-a7b751c67063\" />\n\u003cimg width=\"461\" height=\"346\" alt=\"pgf_rcupdate1_pdf-failed-diff.png\" src=\"https://github.com/user-attachments/assets/4caa54bc-7519-451b-8ca4-1c3c46104162\" />\n\n### Expected outcome\n\n\u003cimg width=\"461\" height=\"346\" alt=\"expected_pgf_rcupdate1_pdf.png\" src=\"https://github.com/user-attachments/assets/51677555-2979-4773-b4d8-7ed9d2e548c8\" />\n\n### Additional information\n\nThis bug is similar to #29790 and perhaps again relates to rendering differences that have been introduced in TeX Live 2026.\n\n### Operating system\n\nUbuntu\n\n### Matplotlib Version\n\n3.12.0\n\n### Matplotlib Backend\n\n_No response_\n\n### Python version\n\n3.12.14\n\n### Jupyter version\n\n_No response_\n\n### Installation\n\nNone","author":{"url":"https://github.com/axel-j-larsson","@type":"Person","name":"axel-j-larsson"},"datePublished":"2026-10-19T16:54:09Z","url":"https://github.com/matplotlib/matplotlib/issues/32505"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| 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:ea0bc63d-ebac-61ba-9ca8-08c9a6e66592 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D898:3ABB17:9CAF49:D27211:6B064EDF |
| html-safe-nonce | 14fea3ae187c3e43393d3ab4af15a3791694bf41ddcc8a8bd395dd7a12aed712 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEODk4OjNBQkIxNzo5Q0FGNDk6RDI3MjExOjZCMDY0RURGIiwidmlzaXRvcl9pZCI6IjE4NDQ0OTAwOTIzNjMwMDk3NTkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | d31a6857afa5123a6677f60ca50a6a4a92923c5c5b3207b64ed5fcb73f606bfb |
| hovercard-subject-tag | issue:5927956061 |
| 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/32505/issue_layout |
| twitter:image | https://opengraph.githubassets.com/dc756382b2672226a4ab1a37cb73fd9d421598246ec7bc1a513023d763385f2f/matplotlib/matplotlib/issues/32505 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/dc756382b2672226a4ab1a37cb73fd9d421598246ec7bc1a513023d763385f2f/matplotlib/matplotlib/issues/32505 |
| og:image:alt | Bug summary When working on #32504 I tested the new baseline against TeX Live 2024, 2025, and 2026. When running the tests with TeX Live 2026 pgf_rcupdate1 failed. Code for reproduction ___________... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | axel-j-larsson |
| hostname | github.com |
| expected-hostname | github.com |
| None | 772b6997ca4daa0428dd49a25d76052e765555ae560fe9c88517eb828bbd861e |
| 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 | f1f9a08f7c769a37f1dfc18ad43d463c222a7eea |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width