Title: Rogue mathtext rendered spaces · Issue #4333 · matplotlib/matplotlib · GitHub
Open Graph Title: Rogue mathtext rendered spaces · Issue #4333 · matplotlib/matplotlib
X Title: Rogue mathtext rendered spaces · Issue #4333 · matplotlib/matplotlib
Description: I'm aware that the built in mathtext rendered is not expected to be perfectly identical to tex, but I'm seeing some egregious behavior with spacing that I cannot seem to explain. With: import matplotlib.pyplot as plt plt.figure() plt.fig...
Open Graph Description: I'm aware that the built in mathtext rendered is not expected to be perfectly identical to tex, but I'm seeing some egregious behavior with spacing that I cannot seem to explain. With: import matpl...
X Description: I'm aware that the built in mathtext rendered is not expected to be perfectly identical to tex, but I'm seeing some egregious behavior with spacing that I cannot seem to explain. With: impo...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/4333
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Rogue mathtext rendered spaces","articleBody":"I'm aware that the built in mathtext rendered is not expected to be perfectly identical to tex, but I'm seeing some egregious behavior with spacing that I cannot seem to explain. With:\n\n```\nimport matplotlib.pyplot as plt\nplt.figure()\nplt.figtext(0.1, 0.9, r\"1. ($a^2$)\", size=20)\nplt.figtext(0.1, 0.8, r\"2. $(a^2)$\", size=20)\nplt.figtext(0.1, 0.7, r\"3. $\\left(a^2\\right)$\", size=20)\nplt.show()\n```\n\nIn both 1.4.2 and a recent development version I get a rogue space before the bracket in all three cases:\n\nCompared with turning `text.usetex` on:\n\n\nUsing a negative space (`\\!`) fixes the issue rendering with matplotlib, but screws up the latex output.\n","author":{"url":"https://github.com/ndevenish","@type":"Person","name":"ndevenish"},"datePublished":"2015-04-13T22:12:25.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":7},"url":"https://github.com/4333/matplotlib/issues/4333"}
| 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:00330b03-09ee-552d-0c88-21427cf3eec3 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 86DC:3998FC:4A3674:627C52:6A52D6E8 |
| html-safe-nonce | 084c8d85b4ca6977c1f3433c9b47c009303e8c032905a6d4dcaa38379542ab69 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NkRDOjM5OThGQzo0QTM2NzQ6NjI3QzUyOjZBNTJENkU4IiwidmlzaXRvcl9pZCI6Ijc5OTE2OTIxMzM4ODIwNTg0NzIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 24a77e80c6c439cec555baa93ba557bd99ecc5c2acb8b8c78482f34b00970162 |
| hovercard-subject-tag | issue:68205737 |
| 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/4333/issue_layout |
| twitter:image | https://opengraph.githubassets.com/03953a9cf9676a3e0971e72e0bb9fbbca9323d8ea5784096af0b102eb4669527/matplotlib/matplotlib/issues/4333 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/03953a9cf9676a3e0971e72e0bb9fbbca9323d8ea5784096af0b102eb4669527/matplotlib/matplotlib/issues/4333 |
| og:image:alt | I'm aware that the built in mathtext rendered is not expected to be perfectly identical to tex, but I'm seeing some egregious behavior with spacing that I cannot seem to explain. With: import matpl... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ndevenish |
| 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 | 07a982c1d40157c619b364352b704c3ce66bb332 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width