Title: AutoDateLocator docs has a typo · Issue #17643 · matplotlib/matplotlib · GitHub
Open Graph Title: AutoDateLocator docs has a typo · Issue #17643 · matplotlib/matplotlib
X Title: AutoDateLocator docs has a typo · Issue #17643 · matplotlib/matplotlib
Description: Bug report Bug summary Unlike the doc, the intervd dictionary has keys of integers, so the example in the doc ("only show every 3 hours") did not work. Code for reproduction import matplotlib.dates as mdates locator = mdates.AutoDateLoca...
Open Graph Description: Bug report Bug summary Unlike the doc, the intervd dictionary has keys of integers, so the example in the doc ("only show every 3 hours") did not work. Code for reproduction import matplotlib.dates...
X Description: Bug report Bug summary Unlike the doc, the intervd dictionary has keys of integers, so the example in the doc ("only show every 3 hours") did not work. Code for reproduction import matplo...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/17643
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"AutoDateLocator docs has a typo","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\nUnlike the [doc](https://matplotlib.org/3.2.1/api/dates_api.html#matplotlib.dates.AutoDateLocator), the ``intervd`` dictionary has keys of integers, so the example in the doc (\"only show every 3 hours\") did not work.\r\n\r\n**Code for reproduction**\r\n\r\n```python\r\nimport matplotlib.dates as mdates\r\nlocator = mdates.AutoDateLocator()\r\nprint(locator.intervald)\r\n```\r\n\r\n**Actual outcome**\r\n```\r\n{\r\n0: [1, 2, 4, 5, 10, 20, 40, 50, 100, 200, 400, 500, 1000, 2000, 4000, 5000, 10000], \r\n1: [1, 2, 3, 4, 6], \r\n3: [1, 2, 4, 7, 14, 21], \r\n4: [1, 2, 3, 4, 6, 12],\r\n5: [1, 5, 10, 15, 30], \r\n6: [1, 5, 10, 15, 30], \r\n7: [1, 2, 5, 10, 20, 50, 100, 200, 500, 1000, 2000, 5000, 10000, 20000, 50000, 100000, 200000, 500000, 1000000]\r\n}\r\n```\r\n\r\n**Expected outcome**\r\n```\r\n{\r\n YEARLY : [1, 2, 4, 5, 10, 20, 40, 50, 100, 200, 400, 500,\r\n 1000, 2000, 4000, 5000, 10000],\r\n MONTHLY : [1, 2, 3, 4, 6],\r\n DAILY : [1, 2, 3, 7, 14],\r\n HOURLY : [1, 2, 3, 4, 6, 12],\r\n MINUTELY: [1, 5, 10, 15, 30],\r\n SECONDLY: [1, 5, 10, 15, 30],\r\n MICROSECONDLY: [1, 2, 5, 10, 20, 50, 100, 200, 500,\r\n 1000, 2000, 5000, 10000, 20000, 50000,\r\n 100000, 200000, 500000, 1000000],\r\n}\r\n```\r\n**Matplotlib version**\r\n * Operating system: macOS 10.14.6\r\n * Matplotlib version: 3.2.1\r\n * Matplotlib backend (`print(matplotlib.get_backend())`): `module://ipykernel.pylab.backend_inline`\r\n * Python version: 3.7.7\r\n * Jupyter version (if applicable):\r\n```\r\njupyter core : 4.6.3\r\njupyter-notebook : 6.0.3\r\nqtconsole : 4.7.4\r\nipython : 7.13.0\r\nipykernel : 5.1.4\r\njupyter client : 6.1.3\r\njupyter lab : 1.2.6\r\nnbconvert : 5.6.1\r\nipywidgets : 7.5.1\r\nnbformat : 5.0.6\r\ntraitlets : 4.3.3\r\n```\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/ysBach","@type":"Person","name":"ysBach"},"datePublished":"2020-06-16T03:13:01.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/17643/matplotlib/issues/17643"}
| 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:046584dd-9318-570d-614f-b0b1e6f0729c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E10A:F97FB:FE4FD:1513B1:6A52397C |
| html-safe-nonce | 8fc07850b2b19387f6c6e4c01941bb49c2a38ad3f02d3467188e943e27147ea1 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMTBBOkY5N0ZCOkZFNEZEOjE1MTNCMTo2QTUyMzk3QyIsInZpc2l0b3JfaWQiOiIyNTk0NDM5OTQxMTMzMDU2MzgwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 4ca723684aa33176afdaf8215ddf313efb5e4d87aea02dc69e3228328c5b83a7 |
| hovercard-subject-tag | issue:639336190 |
| 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/17643/issue_layout |
| twitter:image | https://opengraph.githubassets.com/1935b041417245c2e34b77e958f8d9d09a33cb11a682ba71f8b08e07b5bca256/matplotlib/matplotlib/issues/17643 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/1935b041417245c2e34b77e958f8d9d09a33cb11a682ba71f8b08e07b5bca256/matplotlib/matplotlib/issues/17643 |
| og:image:alt | Bug report Bug summary Unlike the doc, the intervd dictionary has keys of integers, so the example in the doc ("only show every 3 hours") did not work. Code for reproduction import matplotlib.dates... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ysBach |
| 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 | 7aed05249554b889eb33d002851a973eebcc7e91 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width