Title: Unexpected replacement of \right) with exclamation point in MathTextParser output · Issue #5210 · matplotlib/matplotlib · GitHub
Open Graph Title: Unexpected replacement of \right) with exclamation point in MathTextParser output · Issue #5210 · matplotlib/matplotlib
X Title: Unexpected replacement of \right) with exclamation point in MathTextParser output · Issue #5210 · matplotlib/matplotlib
Description: This bug report originates from my attempts to answer this question on Stack Overflow. Minimal example thanks to the other answer there by Baptiste. With certain LaTeX strings, the right paranthesis indicates by \right) is replaced with ...
Open Graph Description: This bug report originates from my attempts to answer this question on Stack Overflow. Minimal example thanks to the other answer there by Baptiste. With certain LaTeX strings, the right paranthesi...
X Description: This bug report originates from my attempts to answer this question on Stack Overflow. Minimal example thanks to the other answer there by Baptiste. With certain LaTeX strings, the right paranthesi...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/5210
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Unexpected replacement of \\right) with exclamation point in MathTextParser output","articleBody":"This bug report originates from my attempts to [answer this question](http://stackoverflow.com/a/33000975/838992) on Stack Overflow. Minimal example thanks to the [other answer there by Baptiste](http://stackoverflow.com/a/33002413/838992).\n\n---\n\nWith certain LaTeX strings, the right paranthesis indicates by `\\right)` is replaced with an exclamation point when passed to MathTextParser and rendered as a bitmap or png. This behaviour appears to occur when the parantheses are around an expression comprising multiple layered fractions. It does not occur if `\\right]` or `\\right\\}` are used\n\nThe minimal code to reproduce this is as follows:\n\n```\nimport matplotlib.mathtext as mt\n\ns = r'$\\left(\\frac{\\frac{\\frac{M}{I}}{N}}' \\\n r'{\\frac{\\frac{B}{U}}{G}}\\right)$'\nparser = mt.MathTextParser(\"Bitmap\")\nfor size in range(1, 30):\n filename = \"figure{0}.png\".format(size)\n parser.to_png(filename, s, fontsize=size)\n```\n\nThis gives output like\n\n\n\nInvestigations indicate that this occurs only for certain combinations of expression and font size, but the example given above seems to give the most consistent failure conditions. It **may** be related to `dpi` in the rendering, however this has not yet been conclusively proven or disproven.\n","author":{"url":"https://github.com/rsnape","@type":"Person","name":"rsnape"},"datePublished":"2015-10-08T14:40:37.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":30},"url":"https://github.com/5210/matplotlib/issues/5210"}
| 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:731971c2-c1d7-0178-286c-370ba1eaa5c6 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CA32:26B984:305C3:3F56D:6A525EFB |
| html-safe-nonce | 58a8b1bc34e14237144f7a095ae4fe7012993f8a870782d5bbc69459f1f5c5d6 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQTMyOjI2Qjk4NDozMDVDMzozRjU2RDo2QTUyNUVGQiIsInZpc2l0b3JfaWQiOiIyNDYwNDc4ODQ2MDE4OTM2NTcxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 654f1e06eac108adc28bebffe1545fe7db56d9d41a486771cd08c153aadefae6 |
| hovercard-subject-tag | issue:110466424 |
| 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/5210/issue_layout |
| twitter:image | https://opengraph.githubassets.com/5b598929919de411067f6a07c20f45953a70313d9933afb149135f9f184fabd8/matplotlib/matplotlib/issues/5210 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/5b598929919de411067f6a07c20f45953a70313d9933afb149135f9f184fabd8/matplotlib/matplotlib/issues/5210 |
| og:image:alt | This bug report originates from my attempts to answer this question on Stack Overflow. Minimal example thanks to the other answer there by Baptiste. With certain LaTeX strings, the right paranthesi... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | rsnape |
| 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