Title: [Bug]: \right) is replaced with exclamation mark when using fontset='cm' · Issue #29886 · matplotlib/matplotlib · GitHub
Open Graph Title: [Bug]: \right) is replaced with exclamation mark when using fontset='cm' · Issue #29886 · matplotlib/matplotlib
X Title: [Bug]: \right) is replaced with exclamation mark when using fontset='cm' · Issue #29886 · matplotlib/matplotlib
Description: Bug summary This is similar to 5210. The right big parenthesis is replaced with an exclamation mark for certain latex code. Multiple queries were tested as follows. Code for reproduction import matplotlib.pyplot as plt plt.rc('mathtext',...
Open Graph Description: Bug summary This is similar to 5210. The right big parenthesis is replaced with an exclamation mark for certain latex code. Multiple queries were tested as follows. Code for reproduction import mat...
X Description: Bug summary This is similar to 5210. The right big parenthesis is replaced with an exclamation mark for certain latex code. Multiple queries were tested as follows. Code for reproduction import mat...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/29886
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[Bug]: \\right) is replaced with exclamation mark when using fontset='cm'","articleBody":"### Bug summary\n\nThis is similar to [5210](https://github.com/matplotlib/matplotlib/issues/5210). The right big parenthesis is replaced with an exclamation mark for certain latex code. \n\nMultiple queries were tested as follows.\n\n### Code for reproduction\n\n```Python\nimport matplotlib.pyplot as plt\n\nplt.rc('mathtext', fontset='cm')\nworking_texts = ['\\\\left(\\\\int_x \\\\right)', '\\\\left(\\\\int^x \\\\right)']\nbugged_texts = ['\\\\left(\\\\int_x^x \\\\right)', '\\\\left(\\\\int_{x}^{x} \\\\right)']\nplt.text(0.5, 0.5, fr'${bugged_texts[0]}$', parse_math=True)\nplt.show()\n```\n\n### Actual outcome\n\nActual:\n\n\n### Expected outcome\n\nExpected:\n\n(But with the upper bound of the integral present)\n\n### Additional information\n\nI have only tested with mathtext fontset 'cm' and without setting it. The default font does display it correctly.\nAs far as I've tested it only happens when both upper and lower bound of the integral is set. Using \\sum or \\iint instead of \\int also works correctly with both bounds. \\oint however causes the same issue.\n\n### Operating system\n\nWindows \n\n### Matplotlib Version\n\n3.10.0\n\n### Matplotlib Backend\n\nmodule://backend_interagg\n\n### Python version\n\n3.12.5, 3.13\n\n### Jupyter version\n\n_No response_\n\n### Installation\n\npip","author":{"url":"https://github.com/Mackemania","@type":"Person","name":"Mackemania"},"datePublished":"2025-04-08T12:33:34.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":7},"url":"https://github.com/29886/matplotlib/issues/29886"}
| 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:d67f4498-663e-e1df-ca09-949bc68ebb29 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E450:B5C81:1356C:1A292:6A524B3F |
| html-safe-nonce | fce71c021e0755b97299b6c3a5b56653f51e2f120987e404fc9eef33b88e1f09 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNDUwOkI1QzgxOjEzNTZDOjFBMjkyOjZBNTI0QjNGIiwidmlzaXRvcl9pZCI6IjM1NTYyMDY5OTczMjMzMTMyNyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 461df1c8204a4018374dc23b6a60052860e386c68812dc072c585b91e56a7c4d |
| hovercard-subject-tag | issue:2979654321 |
| 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/29886/issue_layout |
| twitter:image | https://opengraph.githubassets.com/f0d3bd58994c534a2dfcd54175b3024ff5db094693038e9fd6a6fa75fe8e48c7/matplotlib/matplotlib/issues/29886 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f0d3bd58994c534a2dfcd54175b3024ff5db094693038e9fd6a6fa75fe8e48c7/matplotlib/matplotlib/issues/29886 |
| og:image:alt | Bug summary This is similar to 5210. The right big parenthesis is replaced with an exclamation mark for certain latex code. Multiple queries were tested as follows. Code for reproduction import mat... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Mackemania |
| 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