Title: Incorrect glyphs selected for angle brackets · Issue #18740 · matplotlib/matplotlib · GitHub
Open Graph Title: Incorrect glyphs selected for angle brackets · Issue #18740 · matplotlib/matplotlib
X Title: Incorrect glyphs selected for angle brackets · Issue #18740 · matplotlib/matplotlib
Description: Bug report Bug summary mathtext sometimes selects incorrect glyphs to display angle brackets. Code for reproduction from pylab import * figtext(.2, .7, r"$\left\right>" r"\left\langle?\right\rangle$") \ .set_math_fontfamily("custom") f...
Open Graph Description: Bug report Bug summary mathtext sometimes selects incorrect glyphs to display angle brackets. Code for reproduction from pylab import * figtext(.2, .7, r"$\left\right>" r"\left\langle?\right\rang...
X Description: Bug report Bug summary mathtext sometimes selects incorrect glyphs to display angle brackets. Code for reproduction from pylab import * figtext(.2, .7, r"$\left<?\right>" r"\le...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/18740
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Incorrect glyphs selected for angle brackets","articleBody":"\u003c!--To help us understand and resolve your issue, please fill out the form to the best of your ability.--\u003e\r\n\u003c!--You can feel free to delete the sections that do not apply.--\u003e\r\n\r\n### Bug report\r\n\r\n**Bug summary**\r\n\r\nmathtext sometimes selects incorrect glyphs to display angle brackets.\r\n\r\n**Code for reproduction**\r\n\r\n\u003c!--A minimum code snippet required to reproduce the bug.\r\nPlease make sure to minimize the number of dependencies required, and provide\r\nany necessary plotted data.\r\nAvoid using threads, as Matplotlib is (explicitly) not thread-safe.--\u003e\r\n\r\n```python\r\nfrom pylab import *\r\n\r\nfigtext(.2, .7,\r\n r\"$\\left\u003c?\\right\u003e\"\r\n r\"\\left\\langle?\\right\\rangle$\") \\\r\n .set_math_fontfamily(\"custom\")\r\nfigtext(.2, .3,\r\n r\"$\\left\u003c\\frac{\\sum_{0}^{1}}{\\sum_{0}^{1}}\\right\u003e\"\r\n r\"\\left\\langle\\frac{\\sum_{0}^{1}}{\\sum_{0}^{1}}\\right\\rangle$\") \\\r\n .set_math_fontfamily(\"cm\")\r\nshow()\r\n```\r\n\r\n**Actual outcome**\r\n\r\n\r\nThe glyphs for the small `\\left\u003c\\right\u003e` when using \"custom\" mathtext.fontset and the large `\\left\\langle\\right\\rangle` when using \"cm\" mathtext.fontset are wrong.\r\n\r\n**Expected outcome**\r\n\r\nCorrect glyphs.\r\n\r\nI have some ideas on how to fix this, but would rather wait for mathtext to go fully private (i.e. 3.6) instead of jumping through hoops and hoops of backcompat layers... (but if anyone else wants to have a go at it before then, please do)\r\n\r\n**Matplotlib version**\r\n\u003c!--Please specify your platform and versions of the relevant libraries you are using:--\u003e\r\n * Operating system: fedora\r\n * Matplotlib version: head\r\n * Matplotlib backend (`print(matplotlib.get_backend())`): agg\r\n * Python version: 38\r\n * Jupyter version (if applicable):\r\n * Other libraries: \r\n\r\n\u003c!--Please tell us how you installed matplotlib and python e.g., from source, pip, conda--\u003e\r\n\u003c!--If you installed from conda, please specify which channel you used if not the default--\u003e\r\n\r\n","author":{"url":"https://github.com/anntzer","@type":"Person","name":"anntzer"},"datePublished":"2020-10-15T13:16:08.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/18740/matplotlib/issues/18740"}
| 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:a67cfa45-12cf-873c-d57c-e360cf9892ef |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8338:1CFEED:8F6600:BDD6AF:6A519A4F |
| html-safe-nonce | 398f86911895c7d84dff024f4ed2faaf810c94b1efcbfdc6311c149a18f9ef34 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MzM4OjFDRkVFRDo4RjY2MDA6QkRENkFGOjZBNTE5QTRGIiwidmlzaXRvcl9pZCI6IjY4MTgyODE5OTAzMDA3MzYwNzkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 8f7a9f2c85f19055cc345795ae20e36ffdd77554156dc842d9bfc9f184f6e0a8 |
| hovercard-subject-tag | issue:722326891 |
| 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/18740/issue_layout |
| twitter:image | https://opengraph.githubassets.com/67b9e9310e6c9fd4fcd4cf7e8127963c95a13d903e78458d92c705465faba12c/matplotlib/matplotlib/issues/18740 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/67b9e9310e6c9fd4fcd4cf7e8127963c95a13d903e78458d92c705465faba12c/matplotlib/matplotlib/issues/18740 |
| og:image:alt | Bug report Bug summary mathtext sometimes selects incorrect glyphs to display angle brackets. Code for reproduction from pylab import * figtext(.2, .7, r"$\left\right>" r"\left\langle?\right\rang... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | anntzer |
| 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 | canary-2 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width