Title: [Bug]: matplotlib simple example fails in Python 3.14 · Issue #30370 · matplotlib/matplotlib · GitHub
Open Graph Title: [Bug]: matplotlib simple example fails in Python 3.14 · Issue #30370 · matplotlib/matplotlib
X Title: [Bug]: matplotlib simple example fails in Python 3.14 · Issue #30370 · matplotlib/matplotlib
Description: Bug summary Using the simplest Pyplot example as a minimal test case on Python 3.14 gives a RecursionError: maximum recursion depth exceeded in path.py. Code for reproduction import matplotlib.pyplot as plt plt.plot([1, 2, 3, 4]) plt.yla...
Open Graph Description: Bug summary Using the simplest Pyplot example as a minimal test case on Python 3.14 gives a RecursionError: maximum recursion depth exceeded in path.py. Code for reproduction import matplotlib.pypl...
X Description: Bug summary Using the simplest Pyplot example as a minimal test case on Python 3.14 gives a RecursionError: maximum recursion depth exceeded in path.py. Code for reproduction import matplotlib.pypl...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/30370
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[Bug]: matplotlib simple example fails in Python 3.14","articleBody":"### Bug summary\n\nUsing the simplest Pyplot example as a minimal test case on Python 3.14 gives a `RecursionError: maximum recursion depth exceeded` in `path.py`.\n\n### Code for reproduction\n\n```Python\nimport matplotlib.pyplot as plt\n\nplt.plot([1, 2, 3, 4])\nplt.ylabel('some numbers')\nplt.show()\n```\n\n### Actual outcome\n\n```python3\n... trails way back ...\n File \"/home/bje/source/nemo/myenv/lib/python3.14/site-packages/matplotlib/path.py\", line 285, in __deepcopy__\n p = copy.deepcopy(super(), memo)\n File \"/usr/lib/python3.14/copy.py\", line 157, in deepcopy\n y = _reconstruct(x, memo, *rv)\n File \"/usr/lib/python3.14/copy.py\", line 234, in _reconstruct\n y = func(*args)\n File \"/usr/lib/python3.14/copy.py\", line 233, in \u003cgenexpr\u003e\n args = (deepcopy(arg, memo) for arg in args)\n ~~~~~~~~^^^^^^^^^^^\n File \"/usr/lib/python3.14/copy.py\", line 138, in deepcopy\n y = copier(memo)\n File \"/home/bje/source/nemo/myenv/lib/python3.14/site-packages/matplotlib/path.py\", line 285, in __deepcopy__\n p = copy.deepcopy(super(), memo)\nRecursionError: maximum recursion depth exceeded\n```\n\n### Expected outcome\n\nThe simple example should Just Work.\n\n### Additional information\n\n_No response_\n\n### Operating system\n\nUbuntu 24.04\n\n### Matplotlib Version\n\n3.10.3\n\n### Matplotlib Backend\n\nWxAgg\n\n### Python version\n\nPython 3.14.0rc1\n\n### Jupyter version\n\n_No response_\n\n### Installation\n\npip","author":{"url":"https://github.com/bje-","@type":"Person","name":"bje-"},"datePublished":"2025-07-30T01:07:31.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/30370/matplotlib/issues/30370"}
| 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:24fc5998-b4ca-dc7b-bc80-717d4d447e0c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | EDBC:19F60D:19785AC:219BFA2:6A51D410 |
| html-safe-nonce | a03b98d04d483b13953438cddbf7c1c99971beb037d32602df4f9cc4ca6128e5 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFREJDOjE5RjYwRDoxOTc4NUFDOjIxOUJGQTI6NkE1MUQ0MTAiLCJ2aXNpdG9yX2lkIjoiMzQwNzQ3MTU5MjY2Nzc2MDgwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | f798bb564deded2b7b839ce3757c19487ed6a209b399f499314dbad3afc80dad |
| hovercard-subject-tag | issue:3275379119 |
| 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/30370/issue_layout |
| twitter:image | https://opengraph.githubassets.com/bb2da47c42c34de34659df8cf86bc4b34c9a6875b5a7b419be560569083eed33/matplotlib/matplotlib/issues/30370 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/bb2da47c42c34de34659df8cf86bc4b34c9a6875b5a7b419be560569083eed33/matplotlib/matplotlib/issues/30370 |
| og:image:alt | Bug summary Using the simplest Pyplot example as a minimal test case on Python 3.14 gives a RecursionError: maximum recursion depth exceeded in path.py. Code for reproduction import matplotlib.pypl... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | bje- |
| 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