Title: star (*) symbol in text box cuts off bottom of text when saved · Issue #15313 · matplotlib/matplotlib · GitHub
Open Graph Title: star (*) symbol in text box cuts off bottom of text when saved · Issue #15313 · matplotlib/matplotlib
X Title: star (*) symbol in text box cuts off bottom of text when saved · Issue #15313 · matplotlib/matplotlib
Description: Bug report Bug summary When using the star (*) symbol in a text box, it cuts off the bottom of the text when saved (savefig). This is only the case when usetex=False in rcParams. Code for reproduction import matplotlib import matplotlib....
Open Graph Description: Bug report Bug summary When using the star (*) symbol in a text box, it cuts off the bottom of the text when saved (savefig). This is only the case when usetex=False in rcParams. Code for reproduct...
X Description: Bug report Bug summary When using the star (*) symbol in a text box, it cuts off the bottom of the text when saved (savefig). This is only the case when usetex=False in rcParams. Code for reproduct...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/15313
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"star (*) symbol in text box cuts off bottom of text when saved","articleBody":"### Bug report\r\n\r\n**Bug summary**\r\n\r\nWhen using the star (*) symbol in a `text` box, it cuts off the bottom of the text when saved (`savefig`). This is only the case when `usetex=False` in `rcParams`.\r\n\r\n**Code for reproduction**\r\n\r\n```python\r\nimport matplotlib\r\nimport matplotlib.pyplot as plt\r\n\r\nfrom matplotlib import rc\r\nrc('text', usetex=False)\r\n\r\nfig, ax = plt.subplots(1,1)\r\nax.text(0.5, 0.5, '$S_{*} M^{ath}$ and some not math',\r\n transform=ax.transAxes)\r\nplt.savefig('test1.png', bbox_inches='tight')\r\n```\r\n\r\n\r\n\r\nYou can see the bottom of the text box is cut off. Whereas this plots fine:\r\n\r\n```python\r\nfig, ax = plt.subplots(1,1)\r\nax.text(0.5, 0.5, '$S_{ome} M^{ath}$ and some not math',\r\n transform=ax.transAxes)\r\nplt.savefig('test1.png', bbox_inches='tight')\r\n```\r\n\r\n\r\n\r\n\r\n**Matplotlib version**\r\n * Operating system: Unix\r\n * Matplotlib version: 3.1.1\r\n * Matplotlib backend (`print(matplotlib.get_backend())`): TkAgg\r\n * Python version: Python 3.6.8 (default, Apr 25 2019, 21:02:35)\r\n\r\nmatplotlib installed from pip\r\n\r\n * Other libraries: \r\n\r\ncycler==0.10.0\r\nkiwisolver==1.1.0\r\nnumpy==1.17.2\r\npyparsing==2.4.2\r\npython-dateutil==2.8.0\r\nsix==1.12.0\r\n","author":{"url":"https://github.com/christopherlovell","@type":"Person","name":"christopherlovell"},"datePublished":"2019-09-20T14:58:34.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":20},"url":"https://github.com/15313/matplotlib/issues/15313"}
| 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:ed86e09a-2c46-7057-5928-8635a543a19f |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9F68:29DE49:1A270E3:22866A6:6A52CA67 |
| html-safe-nonce | 4dd0a96838d1972615e1aab47f7940d3f12b577ab99e858128611b3419e0cfe1 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RjY4OjI5REU0OToxQTI3MEUzOjIyODY2QTY6NkE1MkNBNjciLCJ2aXNpdG9yX2lkIjoiMjgyMTQzMTA1MDA4MDc5OTMzNSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 2f2420d3ebf3695f8114001e4b71855e5eee65a8307b1a837d2d6001aa63c4bd |
| hovercard-subject-tag | issue:496400093 |
| 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/15313/issue_layout |
| twitter:image | https://opengraph.githubassets.com/953fba62e86da939bde9b283c5a7a51cc1222644352a7ebfe37de2b1e2801ae9/matplotlib/matplotlib/issues/15313 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/953fba62e86da939bde9b283c5a7a51cc1222644352a7ebfe37de2b1e2801ae9/matplotlib/matplotlib/issues/15313 |
| og:image:alt | Bug report Bug summary When using the star (*) symbol in a text box, it cuts off the bottom of the text when saved (savefig). This is only the case when usetex=False in rcParams. Code for reproduct... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | christopherlovell |
| 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