Title: Minor ticklabels are missing at positions of major ticks. · Issue #13618 · matplotlib/matplotlib · GitHub
Open Graph Title: Minor ticklabels are missing at positions of major ticks. · Issue #13618 · matplotlib/matplotlib
X Title: Minor ticklabels are missing at positions of major ticks. · Issue #13618 · matplotlib/matplotlib
Description: Bug report Bug summary Minor ticklabels are missing at positions of major ticks. Code for reproduction import numpy as np import matplotlib.dates as mdates import matplotlib.pyplot as plt t = np.arange("2018-11-03", "2018-11-06", dtype="...
Open Graph Description: Bug report Bug summary Minor ticklabels are missing at positions of major ticks. Code for reproduction import numpy as np import matplotlib.dates as mdates import matplotlib.pyplot as plt t = np.ar...
X Description: Bug report Bug summary Minor ticklabels are missing at positions of major ticks. Code for reproduction import numpy as np import matplotlib.dates as mdates import matplotlib.pyplot as plt t = np.ar...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/13618
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Minor ticklabels are missing at positions of major ticks.","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\nMinor ticklabels are missing at positions of major ticks.\r\n\r\n**Code for reproduction**\r\n\r\n```\r\nimport numpy as np\r\nimport matplotlib.dates as mdates\r\nimport matplotlib.pyplot as plt\r\n\r\nt = np.arange(\"2018-11-03\", \"2018-11-06\", dtype=\"datetime64\")\r\nx = np.random.rand(len(t))\r\n\r\nfig, ax = plt.subplots()\r\nax.plot(t,x)\r\n\r\nax.xaxis.set_major_locator(mdates.DayLocator())\r\nax.xaxis.set_major_formatter(mdates.DateFormatter('\\n%a'))\r\n\r\nax.xaxis.set_minor_locator(mdates.HourLocator((0,6,12,18)))\r\nax.xaxis.set_minor_formatter(mdates.DateFormatter('%H:%M'))\r\n\r\nplt.show()\r\n```\r\n\r\n**Actual outcome**\r\n\r\nThe above code run with current master produces\r\n\r\n\r\n\r\nThe minor ticklabels showing the `00:00` hours are missing.\r\n\r\n**Expected outcome**\r\n\r\nThe expected outcome would be the same as when running the code with matplotlib 3.0.2 or below:\r\n\r\n\r\n\r\nI would expect to see the hours throughout.\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: Win8\r\n * Matplotlib version: master\r\n * Matplotlib backend (`print(matplotlib.get_backend())`): any\r\n * Python version: 3.6\r\n\r\n","author":{"url":"https://github.com/ImportanceOfBeingErnest","@type":"Person","name":"ImportanceOfBeingErnest"},"datePublished":"2019-03-07T20:27:00.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":25},"url":"https://github.com/13618/matplotlib/issues/13618"}
| 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:3bf3e51b-bf9b-c16c-eab2-d1dbf0755999 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A278:17402E:67BFAA:8D2FF0:6A54139D |
| html-safe-nonce | 2ffe64dff9a8c8a39314119dc38cf254baad9d3bdf4da9f9e1c149b0d8d21597 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMjc4OjE3NDAyRTo2N0JGQUE6OEQyRkYwOjZBNTQxMzlEIiwidmlzaXRvcl9pZCI6IjI1NjY5NzA0MDgzNDQ3NTMwNTMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 20bfac9953202589d6522478138eb9f458b786d63186b0b1c80f3621d0641eb8 |
| hovercard-subject-tag | issue:418497980 |
| 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/13618/issue_layout |
| twitter:image | https://opengraph.githubassets.com/11905e378dad7e47d2f74392960abb45c545d5ee5d3c8829136492817ae0ae2e/matplotlib/matplotlib/issues/13618 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/11905e378dad7e47d2f74392960abb45c545d5ee5d3c8829136492817ae0ae2e/matplotlib/matplotlib/issues/13618 |
| og:image:alt | Bug report Bug summary Minor ticklabels are missing at positions of major ticks. Code for reproduction import numpy as np import matplotlib.dates as mdates import matplotlib.pyplot as plt t = np.ar... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ImportanceOfBeingErnest |
| 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