Title: `ax.get_xaxis().get_minorticklabels()` always returns list of empty strings · Issue #13968 · matplotlib/matplotlib · GitHub
Open Graph Title: `ax.get_xaxis().get_minorticklabels()` always returns list of empty strings · Issue #13968 · matplotlib/matplotlib
X Title: `ax.get_xaxis().get_minorticklabels()` always returns list of empty strings · Issue #13968 · matplotlib/matplotlib
Description: Bug report Bug summary ax.get_xaxis().get_minorticklabels() always returns list of empty strings. Code for reproduction import matplotlib import matplotlib.pyplot as plt fig, ax = plt.subplots() ax.set_xscale('log') ax.set_yscale('log') ...
Open Graph Description: Bug report Bug summary ax.get_xaxis().get_minorticklabels() always returns list of empty strings. Code for reproduction import matplotlib import matplotlib.pyplot as plt fig, ax = plt.subplots() ax...
X Description: Bug report Bug summary ax.get_xaxis().get_minorticklabels() always returns list of empty strings. Code for reproduction import matplotlib import matplotlib.pyplot as plt fig, ax = plt.subplots() ax...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/13968
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`ax.get_xaxis().get_minorticklabels()` always returns list of empty strings","articleBody":"### Bug report\r\n\r\n**Bug summary**\r\n\r\n`ax.get_xaxis().get_minorticklabels()` always returns list of empty strings.\r\n\r\n**Code for reproduction**\r\n\r\n```python\r\nimport matplotlib\r\nimport matplotlib.pyplot as plt\r\n\r\nfig, ax = plt.subplots()\r\n\r\nax.set_xscale('log')\r\nax.set_yscale('log')\r\n\r\nax.set_xlim([2e-2, 2e-1])\r\nax.set_ylim([2e+1, 2e+3])\r\n\r\nax.plot([0.02, 0.1, 0.2], [20, 1000, 2000])\r\n\r\nax.get_xaxis().set_major_formatter(matplotlib.ticker.ScalarFormatter())\r\nax.get_xaxis().set_minor_formatter(matplotlib.ticker.ScalarFormatter())\r\n\r\nfig.canvas.draw()\r\n\r\nprint([item.get_text() for item in ax.get_xaxis().get_minorticklabels()])\r\n\r\nplt.show()\r\n```\r\n\r\n**Actual outcome**\r\n\r\n```bash\r\n['', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '']\r\n```\r\n\r\n\r\n\r\n**Expected outcome**\r\n\r\n```bash\r\n['0.00', '0.00', '0.00', '0.01', '0.01', '0.01', '0.01', '0.01', '0.02', '0.03', '0.04', '0.05', '0.06', '0.07', '0.08', '0.09', '0.20', '0.30', '0.40', '0.50', '0.60', '0.70', '0.80', '0.90', '2.00', '3.00', '4.00', '5.00', '6.00', '7.00', '8.00', '9.00', '20.00', '30.00', '40.00', '50.00', '60.00', '70.00', '80.00', '90.00']\r\n```\r\n\r\n**Matplotlib version**\r\n\r\n * Operating system: macOS Mojave 10.14.4\r\n * Matplotlib version: 3.0.3\r\n * Matplotlib backend (`print(matplotlib.get_backend())`): `MacOSX`\r\n * Python version: 3.7.3\r\n\r\nPython installed using homebrew, matplotlib using pip.\r\n\r\n","author":{"url":"https://github.com/tdegeus","@type":"Person","name":"tdegeus"},"datePublished":"2019-04-15T15:11:29.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":6},"url":"https://github.com/13968/matplotlib/issues/13968"}
| 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:bc25b2bf-ef4c-af50-8370-be0a04de6278 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C5E4:2CC2B9:7407C:9DE33:6A535E57 |
| html-safe-nonce | 87859f4b1c296005ceccb44317db816137e2e6125ca6a5d7bd39944510768a43 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNUU0OjJDQzJCOTo3NDA3Qzo5REUzMzo2QTUzNUU1NyIsInZpc2l0b3JfaWQiOiI3MzA1MzAwOTI5MTMzMzcwOTY3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | bdfd1d41a3ce61b2f7fe55045baf8a80a5d555a3f064613059bd8942b528ea48 |
| hovercard-subject-tag | issue:433337040 |
| 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/13968/issue_layout |
| twitter:image | https://opengraph.githubassets.com/a670ff3e3277e15e6ad753c5382071f4ba296c795cdc50e24bd12c6eccc928a7/matplotlib/matplotlib/issues/13968 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/a670ff3e3277e15e6ad753c5382071f4ba296c795cdc50e24bd12c6eccc928a7/matplotlib/matplotlib/issues/13968 |
| og:image:alt | Bug report Bug summary ax.get_xaxis().get_minorticklabels() always returns list of empty strings. Code for reproduction import matplotlib import matplotlib.pyplot as plt fig, ax = plt.subplots() ax... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | tdegeus |
| 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