Title: [Bug]: Incorrect mathtext rendering of `r"$\|$"` with default (dejavu) math fontfamily · Issue #23250 · matplotlib/matplotlib · GitHub
Open Graph Title: [Bug]: Incorrect mathtext rendering of `r"$\|$"` with default (dejavu) math fontfamily · Issue #23250 · matplotlib/matplotlib
X Title: [Bug]: Incorrect mathtext rendering of `r"$\|$"` with default (dejavu) math fontfamily · Issue #23250 · matplotlib/matplotlib
Description: Bug summary r"$\|$" should render as a double vertical bar, which it does with usetex or with math_fontfamily="cm", but not with the default "dejavusans" math_fontfamily. Code for reproduction s = r"single$|$ double$\|$" figtext(.5, .7, ...
Open Graph Description: Bug summary r"$\|$" should render as a double vertical bar, which it does with usetex or with math_fontfamily="cm", but not with the default "dejavusans" math_fontfamily. Code for reproduction s = ...
X Description: Bug summary r"$\|$" should render as a double vertical bar, which it does with usetex or with math_fontfamily="cm", but not with the default "dejavusans" math_fontfami...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/23250
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[Bug]: Incorrect mathtext rendering of `r\"$\\|$\"` with default (dejavu) math fontfamily","articleBody":"### Bug summary\n\n`r\"$\\|$\"` should render as a double vertical bar, which it does with usetex or with math_fontfamily=\"cm\", but not with the default \"dejavusans\" math_fontfamily.\n\n### Code for reproduction\n\n```python\ns = r\"single$|$ double$\\|$\"\r\nfigtext(.5, .7, s); figtext(.5, .6, s, math_fontfamily=\"cm\"); figtext(.5, .5, s, usetex=True)\n```\n\n\n### Actual outcome\n\n\n\n### Expected outcome\n\nDouble vertical bar in the first line too.\n\n### Additional information\n\n_No response_\n\n### Operating system\n\narch\n\n### Matplotlib Version\n\n3.6.0.dev2423+gd0bef3b3d7\n\n### Matplotlib Backend\n\nqt5agg\n\n### Python version\n\n3.10\n\n### Jupyter version\n\nENOSUCHLIB\n\n### Installation\n\ngit checkout","author":{"url":"https://github.com/anntzer","@type":"Person","name":"anntzer"},"datePublished":"2022-06-11T13:37:26.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":13},"url":"https://github.com/23250/matplotlib/issues/23250"}
| 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:05e42e78-766d-eee3-03d0-c7f4fc152f4c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | EAE2:29BECE:1921103:2137A99:6A51D404 |
| html-safe-nonce | a6ca5e22df7e83c505ae820ff5f1cf3d76f7ae917c89fbb94d9d185ddf3c6a78 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQUUyOjI5QkVDRToxOTIxMTAzOjIxMzdBOTk6NkE1MUQ0MDQiLCJ2aXNpdG9yX2lkIjoiOTA3ODE3MTg0MzAzOTQ1MDExNyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | a0cf83bb5afe3ef6fe579a50f978bf36c6c5df6166054d7938b47c5cfbd637f2 |
| hovercard-subject-tag | issue:1268279165 |
| 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/23250/issue_layout |
| twitter:image | https://opengraph.githubassets.com/78a12c8e265dd7bef9fbbee53beda45e7aadfe07f72178db8778c1abb3218687/matplotlib/matplotlib/issues/23250 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/78a12c8e265dd7bef9fbbee53beda45e7aadfe07f72178db8778c1abb3218687/matplotlib/matplotlib/issues/23250 |
| og:image:alt | Bug summary r"$\|$" should render as a double vertical bar, which it does with usetex or with math_fontfamily="cm", but not with the default "dejavusans" math_fontfamily. Code for reproduction s = ... |
| 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 | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width