Title: Subscripts not displayed correctly for high dpi · Issue #18899 · matplotlib/matplotlib · GitHub
Open Graph Title: Subscripts not displayed correctly for high dpi · Issue #18899 · matplotlib/matplotlib
X Title: Subscripts not displayed correctly for high dpi · Issue #18899 · matplotlib/matplotlib
Description: Some subscripts seem to be incorrectly displayed in figures with high pixel density. For example, subscript + is shown correctly even for dpi=600, while subscript - or * are not shown correctly and the previous letter is cut off. This is...
Open Graph Description: Some subscripts seem to be incorrectly displayed in figures with high pixel density. For example, subscript + is shown correctly even for dpi=600, while subscript - or * are not shown correctly and...
X Description: Some subscripts seem to be incorrectly displayed in figures with high pixel density. For example, subscript + is shown correctly even for dpi=600, while subscript - or * are not shown correctly and...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/18899
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Subscripts not displayed correctly for high dpi","articleBody":"Some subscripts seem to be incorrectly displayed in figures with high pixel density. For example, subscript + is shown correctly even for dpi=600, while subscript - or * are not shown correctly and the previous letter is cut off. This is similar to #4428, so apparently the issue has not been resolved.\r\nExample:\r\n```\r\nimport matplotlib.pyplot as plt\r\nfig1 = plt.figure()\r\nax1 = fig1.add_subplot(111)\r\nax1.axis([0, 5, 0, 5])\r\nax1.text(2,4, '$X_-$', fontsize=25)\r\nax1.text(4,4, '$X_+$', fontsize=25)\r\nax1.text(2,2, '$X_*$', fontsize=25)\r\n\r\nfig2 = plt.figure(dpi=600)\r\nax2 = fig2.add_subplot(111)\r\nax2.axis([0, 5, 0, 5])\r\nax2.text(2,4, '$X_-$', fontsize=25)\r\nax2.text(4,4, '$X_+$', fontsize=25)\r\nax2.text(2,2, '$X_*$', fontsize=25)\r\n```\r\nproduces\r\n\r\n\r\n\r\nI am using matplotlib 3.3.2 with Python 3.7.8.\r\n","author":{"url":"https://github.com/swish42","@type":"Person","name":"swish42"},"datePublished":"2020-11-05T15:31:04.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/18899/matplotlib/issues/18899"}
| 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:867386f9-1ffe-b375-c7d3-f4f16780c22a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A78C:141904:1D68B22:26AC6A7:6A51E1FA |
| html-safe-nonce | 9c4edb2a9a6fc7c1af2a3363d702fab646484607a4ed4e67bc21f53d9af2a4de |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNzhDOjE0MTkwNDoxRDY4QjIyOjI2QUM2QTc6NkE1MUUxRkEiLCJ2aXNpdG9yX2lkIjoiODQ0NDI4NjYwOTE4OTM2NDIxOCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 8171e3cb1e4ba46abe47ed7cbf6c2bff245b30e85fac7d8a39eda15955ff5c7d |
| hovercard-subject-tag | issue:737034182 |
| 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/18899/issue_layout |
| twitter:image | https://opengraph.githubassets.com/e4f46e5bf82431b109d1ed58e982735809a96bac4601ab3bff643588130c863e/matplotlib/matplotlib/issues/18899 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/e4f46e5bf82431b109d1ed58e982735809a96bac4601ab3bff643588130c863e/matplotlib/matplotlib/issues/18899 |
| og:image:alt | Some subscripts seem to be incorrectly displayed in figures with high pixel density. For example, subscript + is shown correctly even for dpi=600, while subscript - or * are not shown correctly and... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | swish42 |
| 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