Title: \times in minor ticklabels not recognized due to \mathdefault · Issue #10029 · matplotlib/matplotlib · GitHub
Open Graph Title: \times in minor ticklabels not recognized due to \mathdefault · Issue #10029 · matplotlib/matplotlib
X Title: \times in minor ticklabels not recognized due to \mathdefault · Issue #10029 · matplotlib/matplotlib
Description: Bug report Bug summary The '\times' glyph in minor ticklabels of log plots is not being recognized because it is getting wrapped inside '\mathdefault{...}'. The problem and a temporary solution (simply removing '\mathdefault') is fully d...
Open Graph Description: Bug report Bug summary The '\times' glyph in minor ticklabels of log plots is not being recognized because it is getting wrapped inside '\mathdefault{...}'. The problem and a temporary solution (si...
X Description: Bug report Bug summary The '\times' glyph in minor ticklabels of log plots is not being recognized because it is getting wrapped inside '\mathdefault{...}'. The problem and a tempor...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/10029
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"\\times in minor ticklabels not recognized due to \\mathdefault","articleBody":"### Bug report\r\n**Bug summary**\r\nThe `'\\times'` glyph in minor ticklabels of log plots is not being recognized because it is getting wrapped inside `'\\mathdefault{...}'`. The problem and a temporary solution (simply removing `'\\mathdefault'`) is fully described on [Stack Overflow](https://stackoverflow.com/questions/47253462/matplotlib-2-mathtext-glyph-errors-in-tick-labels/47850541#47850541).\r\n\r\n**Code for reproduction**\r\n```python\r\nimport matplotlib\r\nimport matplotlib.pyplot as plt\r\n\r\n# Customize matplotlib\r\nmatplotlib.rcParams.update({# Use mathtext, not LaTeX\r\n 'text.usetex': False,\r\n # Use the Computer modern font\r\n 'font.family': 'serif',\r\n 'font.serif': 'cmr10',\r\n 'mathtext.fontset': 'cm',\r\n # Use ASCII minus\r\n 'axes.unicode_minus': False,\r\n })\r\n\r\n# Plot\r\nplt.semilogy([-0.03, 0.05], [0.3, 0.05])\r\nplt.savefig('test.png')\r\n```\r\n\r\n**Actual outcome**\r\n```\r\npython/lib/python3.6/site-packages/matplotlib/mathtext.py:866: MathTextWarning: Font 'default' does not have a glyph for '\\times' [U+d7]\r\n MathTextWarning)\r\npython/lib/python3.6/site-packages/matplotlib/mathtext.py:867: MathTextWarning: Substituting with a dummy symbol.\r\n warn(\"Substituting with a dummy symbol.\", MathTextWarning)\r\n```\r\n\r\n\r\n\r\n**Expected outcome**\r\n\r\nThis is only a problem with matplotlib 2.x, as 1.x never automatically places minor ticklabels. \r\n\r\n**Matplotlib version**\r\n * Operating system: Linux\r\n * Matplotlib version: 2.0.2, but the bug is consistently reproduced in all of matplotlib 2.x\r\n * Matplotlib backend: Agg, TkAgg\r\n * Python version: 3.6\r\n\r\nI have installed Python and matplotlib from source.","author":{"url":"https://github.com/jmd-dk","@type":"Person","name":"jmd-dk"},"datePublished":"2017-12-16T23:16:25.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":15},"url":"https://github.com/10029/matplotlib/issues/10029"}
| 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:9856d974-0ced-5384-6a7d-fafd68a9d7f8 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B6D0:18B692:15929D:1D0E0C:6A5267C7 |
| html-safe-nonce | 058f3e5e3da96f9595c98c1c96c355a283313762255bf2f065ffbe4af81b37ca |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNkQwOjE4QjY5MjoxNTkyOUQ6MUQwRTBDOjZBNTI2N0M3IiwidmlzaXRvcl9pZCI6IjcxNTIyNDc5Mzk4ODQyNzk3NTEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 8f27009b177e661f28e6d6589e414c60ed6f1868fe6901f06d7b17ae829aa9b7 |
| hovercard-subject-tag | issue:282657266 |
| 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/10029/issue_layout |
| twitter:image | https://opengraph.githubassets.com/073d269988f780982ab48b2cffdbfef53f2eee0c863d9c2c8a194a7b2e7694a0/matplotlib/matplotlib/issues/10029 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/073d269988f780982ab48b2cffdbfef53f2eee0c863d9c2c8a194a7b2e7694a0/matplotlib/matplotlib/issues/10029 |
| og:image:alt | Bug report Bug summary The '\times' glyph in minor ticklabels of log plots is not being recognized because it is getting wrapped inside '\mathdefault{...}'. The problem and a temporary solution (si... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | jmd-dk |
| 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