Title: Thin space missing after mathtext operators · Issue #17852 · matplotlib/matplotlib · GitHub
Open Graph Title: Thin space missing after mathtext operators · Issue #17852 · matplotlib/matplotlib
X Title: Thin space missing after mathtext operators · Issue #17852 · matplotlib/matplotlib
Description: Bug report Bug summary Mathtext operators (\log, \max, etc.) should insert a thin space after themselves (if followed by ordinary characters, not if followed by an open parenthesis, see https://tex.stackexchange.com/questions/225922/spac...
Open Graph Description: Bug report Bug summary Mathtext operators (\log, \max, etc.) should insert a thin space after themselves (if followed by ordinary characters, not if followed by an open parenthesis, see https://tex...
X Description: Bug report Bug summary Mathtext operators (\log, \max, etc.) should insert a thin space after themselves (if followed by ordinary characters, not if followed by an open parenthesis, see https://tex...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/17852
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Thin space missing after mathtext operators","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 operators (`\\log`, `\\max`, etc.) should insert a thin space after themselves (if followed by ordinary characters, not if followed by an open parenthesis, see https://tex.stackexchange.com/questions/225922/spacing-rules-for-operatorname/225924#225924), but currently it does not.\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\nfigtext(.5, .6, r\"$\\log 6$ (usetex)\", usetex=True)\r\nfigtext(.5, .5, r\"$\\log 6$ (current)\")\r\nfigtext(.5, .4, r\"$\\mathdefault{log}\\,6$ (manual thin space)\")\r\nfigtext(.5, .3, r\"$\\mathdefault{log}\\ 6$ (manual full space)\")\r\nshow()\r\n```\r\n\r\n\r\n**Actual outcome**\r\n\r\n\r\nNote the missing thin space between \"g\" and \"6\" in the current behavior.\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: master\r\n * Matplotlib backend (`print(matplotlib.get_backend())`): qt5agg\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-07-07T20:02:53.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/17852/matplotlib/issues/17852"}
| 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:86641f76-638c-abb1-92f9-58dc9c6fbd17 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DDF2:246FC8:2F0DF5:41E20F:6A533788 |
| html-safe-nonce | 97ea238d99135db44512dfb6a640cbcc6dc3009084cd9080bcf06b18d5bfce0e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEREYyOjI0NkZDODoyRjBERjU6NDFFMjBGOjZBNTMzNzg4IiwidmlzaXRvcl9pZCI6Ijc5NjYxMDk3MjI2OTg4NTMyMCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 2905b9fc357604d086683b72ae38559aae9dd7d6b1dc8a4aa9e712c2ee0c194b |
| hovercard-subject-tag | issue:652597542 |
| 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/17852/issue_layout |
| twitter:image | https://opengraph.githubassets.com/dff3499f682144d757ab391a3c211ef2048f8c3366260b52ff883f9385e891ba/matplotlib/matplotlib/issues/17852 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/dff3499f682144d757ab391a3c211ef2048f8c3366260b52ff883f9385e891ba/matplotlib/matplotlib/issues/17852 |
| og:image:alt | Bug report Bug summary Mathtext operators (\log, \max, etc.) should insert a thin space after themselves (if followed by ordinary characters, not if followed by an open parenthesis, see https://tex... |
| 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 | 07a982c1d40157c619b364352b704c3ce66bb332 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width