Title: [Bug]: test_backend_pgf.py::test_rcupdate fails with texlive 2025 · Issue #29790 · matplotlib/matplotlib · GitHub
Open Graph Title: [Bug]: test_backend_pgf.py::test_rcupdate fails with texlive 2025 · Issue #29790 · matplotlib/matplotlib
X Title: [Bug]: test_backend_pgf.py::test_rcupdate fails with texlive 2025 · Issue #29790 · matplotlib/matplotlib
Description: Bug summary Hi all, thanks for this useful library! Sadly, with texlive 20250308 test_backend_pgf.py::test_rcupdate image comparison fails in matplotlib 3.10.1. I don't have the images, as the tests ran on an external system. Code for re...
Open Graph Description: Bug summary Hi all, thanks for this useful library! Sadly, with texlive 20250308 test_backend_pgf.py::test_rcupdate image comparison fails in matplotlib 3.10.1. I don't have the images, as the test...
X Description: Bug summary Hi all, thanks for this useful library! Sadly, with texlive 20250308 test_backend_pgf.py::test_rcupdate image comparison fails in matplotlib 3.10.1. I don't have the images, as the ...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/29790
X: @github
Domain: github.com
IPv4 address: 140.82.112.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[Bug]: test_backend_pgf.py::test_rcupdate fails with texlive 2025","articleBody":"### Bug summary\n\nHi all, thanks for this useful library! Sadly, with texlive 20250308 `test_backend_pgf.py::test_rcupdate` image comparison fails in matplotlib 3.10.1. I don't have the images, as the tests ran on an external system.\n\n### Code for reproduction\n\n```Python\nrun `test_backend_pgf.py::test_rcupdate`\n```\n\n### Actual outcome\n\nI am sorry, as I said, I don't have the images and the log is boring otherwise:\n\n```\n[ 503s] ________________________________ test_rcupdate _________________________________\n[ 503s] \n[ 503s] @needs_pgf_xelatex\n[ 503s] @needs_pgf_pdflatex\n[ 503s] @mpl.style.context('default')\n[ 503s] @pytest.mark.backend('pgf')\n[ 503s] def test_rcupdate():\n[ 503s] rc_sets = [{'font.family': 'sans-serif',\n[ 503s] 'font.size': 30,\n[ 503s] 'figure.subplot.left': .2,\n[ 503s] 'lines.markersize': 10,\n[ 503s] 'pgf.rcfonts': False,\n[ 503s] 'pgf.texsystem': 'xelatex'},\n[ 503s] {'font.family': 'monospace',\n[ 503s] 'font.size': 10,\n[ 503s] 'figure.subplot.left': .1,\n[ 503s] 'lines.markersize': 20,\n[ 503s] 'pgf.rcfonts': False,\n[ 503s] 'pgf.texsystem': 'pdflatex',\n[ 503s] 'pgf.preamble': ('\\\\usepackage[utf8x]{inputenc}'\n[ 503s] '\\\\usepackage[T1]{fontenc}'\n[ 503s] '\\\\usepackage{sfmath}')}]\n[ 503s] tol = [0, 13.2] if _old_gs_version else [0, 0]\n[ 503s] for i, rc_set in enumerate(rc_sets):\n[ 503s] with mpl.rc_context(rc_set):\n[ 503s] for substring, pkg in [('sfmath', 'sfmath'), ('utf8x', 'ucs')]:\n[ 503s] if (substring in mpl.rcParams['pgf.preamble']\n[ 503s] and not _has_tex_package(pkg)):\n[ 503s] pytest.skip(f'needs {pkg}.sty')\n[ 503s] create_figure()\n[ 503s] > compare_figure(f'pgf_rcupdate{i + 1}.pdf', tol=tol[i])\n[ 503s] \n[ 503s] /usr/lib64/python3.11/site-packages/matplotlib/tests/test_backend_pgf.py:142: \n[ 503s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n[ 503s] \n[ 503s] fname = 'pgf_rcupdate2.pdf', savefig_kwargs = {}, tol = 0\n[ 503s] \n[ 503s] def compare_figure(fname, savefig_kwargs={}, tol=0):\n[ 503s] actual = os.path.join(result_dir, fname)\n[ 503s] plt.savefig(actual, **savefig_kwargs)\n[ 503s] \n[ 503s] expected = os.path.join(result_dir, \"expected_%s\" % fname)\n[ 503s] shutil.copyfile(os.path.join(baseline_dir, fname), expected)\n[ 503s] err = compare_images(expected, actual, tol=tol)\n[ 503s] if err:\n[ 503s] > raise ImageComparisonFailure(err)\n[ 503s] E matplotlib.testing.exceptions.ImageComparisonFailure: Error: Image files did not match.\n[ 503s] E RMS Value: 4.23523981360686\n[ 503s] E Expected: \n[ 503s] E /home/abuild/rpmbuild/BUILD/python-matplotlib-test-3.10.1-build/matplotlib-3.10.1/result_images/test_backend_pgf/expected_pgf_rcupdate2_pdf.png\n[ 503s] E Actual: \n[ 503s] E /home/abuild/rpmbuild/BUILD/python-matplotlib-test-3.10.1-build/matplotlib-3.10.1/result_images/test_backend_pgf/pgf_rcupdate2_pdf.png\n[ 503s] E Difference:\n[ 503s] E /home/abuild/rpmbuild/BUILD/python-matplotlib-test-3.10.1-build/matplotlib-3.10.1/result_images/test_backend_pgf/pgf_rcupdate2_pdf-failed-diff.png\n[ 503s] E Tolerance: \n[ 503s] E 0\n[ 503s] \n[ 503s] /usr/lib64/python3.11/site-packages/matplotlib/tests/test_backend_pgf.py:34: ImageComparisonFailure\n```\n\n### Expected outcome\n\ntests pass\n\n### Additional information\n\n_No response_\n\n### Operating system\n\nopenSUSE Tumbleweed\n\n### Matplotlib Version\n\n3.10.1\n\n### Matplotlib Backend\n\n_No response_\n\n### Python version\n\n_No response_\n\n### Jupyter version\n\n_No response_\n\n### Installation\n\nfrom source (.tar.gz)","author":{"url":"https://github.com/MeggyCal","@type":"Person","name":"MeggyCal"},"datePublished":"2025-03-21T14:26:01Z","url":"https://github.com/matplotlib/matplotlib/issues/29790"}
| 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:613ebb8c-ecfa-3f6c-5ebb-df8adaead413 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B8C0:B70F1:E069C4:130F427:6B06554D |
| html-safe-nonce | 6bfa4159f346498613d7cc63c112c78c41cf5896b01ad04b75f8da95486e28fb |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCOEMwOkI3MEYxOkUwNjlDNDoxMzBGNDI3OjZCMDY1NTREIiwidmlzaXRvcl9pZCI6IjM4MTE3NDQ0NjU4MDc2Mjc1OTciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 8efec796063790f124631133fd7858b933c015282b32c3e0327011ed3a0a8ccf |
| hovercard-subject-tag | issue:2938570266 |
| 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/29790/issue_layout |
| twitter:image | https://opengraph.githubassets.com/26a9e5ab8edca1cb0f116bc3d706e3892592119e7690ee085213b19e6a3338a1/matplotlib/matplotlib/issues/29790 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/26a9e5ab8edca1cb0f116bc3d706e3892592119e7690ee085213b19e6a3338a1/matplotlib/matplotlib/issues/29790 |
| og:image:alt | Bug summary Hi all, thanks for this useful library! Sadly, with texlive 20250308 test_backend_pgf.py::test_rcupdate image comparison fails in matplotlib 3.10.1. I don't have the images, as the test... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | MeggyCal |
| hostname | github.com |
| expected-hostname | github.com |
| None | 6324e6ac990fb6befbec840cc0e102a1071c339bfe8f9826bb12de2e3ba1d297 |
| 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 | 7f0aa75f4141d440c6110dc31af7ea7797abb6c4 |
| ui-target | canary-1 |
| 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