Title: DayLocator is returning incorrect times around daylights switch over · Issue #9018 · matplotlib/matplotlib · GitHub
Open Graph Title: DayLocator is returning incorrect times around daylights switch over · Issue #9018 · matplotlib/matplotlib
X Title: DayLocator is returning incorrect times around daylights switch over · Issue #9018 · matplotlib/matplotlib
Description: Bug report Bug summary DayLocator returning incorrect times around daylights switch over, resulting in duplicate day labels. Code for reproduction import datetime import pylab import matplotlib.dates as mdates import pytz x = [datetime.d...
Open Graph Description: Bug report Bug summary DayLocator returning incorrect times around daylights switch over, resulting in duplicate day labels. Code for reproduction import datetime import pylab import matplotlib.dat...
X Description: Bug report Bug summary DayLocator returning incorrect times around daylights switch over, resulting in duplicate day labels. Code for reproduction import datetime import pylab import matplotlib.dat...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/9018
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"DayLocator is returning incorrect times around daylights switch over","articleBody":"### Bug report\r\n\r\n**Bug summary**\r\n\r\n`DayLocator` returning incorrect times around daylights switch over, resulting in duplicate day labels.\r\n\r\n**Code for reproduction**\r\n\r\n```python\r\nimport datetime\r\n\r\nimport pylab\r\nimport matplotlib.dates as mdates\r\nimport pytz\r\n\r\nx = [datetime.datetime(2017, 3, 30), datetime.datetime(2017,4,4)]\r\ny = [0, 1]\r\n\r\npylab.plot(x, y)\r\n\r\nax = pylab.gca()\r\n\r\ntz = pytz.timezone(\"Australia/Sydney\")\r\nax.xaxis.set_major_locator(mdates.DayLocator(tz=tz))\r\nax.xaxis.set_major_formatter(mdates.DateFormatter(\"%a\", tz=tz))\r\n\r\npylab.show()\r\n```\r\n\r\n**Actual outcome**\r\nThe day labels for the day of the daylight switch over are duplicated, see figure below:\r\n\r\n\r\n\r\n**Expected outcome**\r\nThe labels should not be duplicated.\r\n\r\n**Matplotlib version**\r\n\r\n * Operating System: Kubuntu 17.04\r\n * Matplotlib Version: 2.02\r\n * Python Version: Python 2.7.13 \r\n * pytz: 2017.2\r\n","author":{"url":"https://github.com/LanceJenkinZA","@type":"Person","name":"LanceJenkinZA"},"datePublished":"2017-08-11T07:08:37.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/9018/matplotlib/issues/9018"}
| 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:b610bdf1-a241-63c3-3d8c-a73d2cc9f2f7 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E096:71C60:A8CE5D:E60AA5:6A55589F |
| html-safe-nonce | f22489f8058716cd26e38e43ba13a3e77d2c91fdadb5f83db8643328755cdcde |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMDk2OjcxQzYwOkE4Q0U1RDpFNjBBQTU6NkE1NTU4OUYiLCJ2aXNpdG9yX2lkIjoiNDAyNTg5OTgyODc1NjQzNzE1MSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 6493ffcfcb041d7ddf77e669e51fc15717f3742855d1e2ad8a8d0cba93a4fd6b |
| hovercard-subject-tag | issue:249554287 |
| 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/9018/issue_layout |
| twitter:image | https://opengraph.githubassets.com/b0a61f6b3cb59f100595c978bb76f876208bec37a6f4f20b9df180d39d6c7e76/matplotlib/matplotlib/issues/9018 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/b0a61f6b3cb59f100595c978bb76f876208bec37a6f4f20b9df180d39d6c7e76/matplotlib/matplotlib/issues/9018 |
| og:image:alt | Bug report Bug summary DayLocator returning incorrect times around daylights switch over, resulting in duplicate day labels. Code for reproduction import datetime import pylab import matplotlib.dat... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | LanceJenkinZA |
| hostname | github.com |
| expected-hostname | github.com |
| None | b5665c84831ed9ac4fb79519c16c9c5580ba8092fb8bb6e3e72972ec7197348e |
| 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 | 73595e82546ca2415571a2031890ab16ecb3001a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width