Title: AutoDateLocator interval bug · Issue #2081 · matplotlib/matplotlib · GitHub
Open Graph Title: AutoDateLocator interval bug · Issue #2081 · matplotlib/matplotlib
X Title: AutoDateLocator interval bug · Issue #2081 · matplotlib/matplotlib
Description: Let me start with the code: from datetime import datetime from matplotlib.dates import AutoDateLocator as ADL, _UTC as UTC dmin = datetime(2013, 1, 8, 14, 5, tzinfo=UTC()) dmax = datetime(2013, 5, 28, 14, 5, tzinfo=UTC()) # ADL().get_loc...
Open Graph Description: Let me start with the code: from datetime import datetime from matplotlib.dates import AutoDateLocator as ADL, _UTC as UTC dmin = datetime(2013, 1, 8, 14, 5, tzinfo=UTC()) dmax = datetime(2013, 5, ...
X Description: Let me start with the code: from datetime import datetime from matplotlib.dates import AutoDateLocator as ADL, _UTC as UTC dmin = datetime(2013, 1, 8, 14, 5, tzinfo=UTC()) dmax = datetime(2013, 5, ...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/2081
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"AutoDateLocator interval bug","articleBody":"Let me start with the code:\n\n``` python\nfrom datetime import datetime\nfrom matplotlib.dates import AutoDateLocator as ADL, _UTC as UTC\ndmin = datetime(2013, 1, 8, 14, 5, tzinfo=UTC())\ndmax = datetime(2013, 5, 28, 14, 5, tzinfo=UTC())\n# ADL().get_locator(dmin, dmax)\n\nfrom matplotlib import pyplot\n\nx = [dmin, dmax]\ny = [1, 2]\npyplot.plot(x, y)\npyplot.show()\n```\n\nWhen you run it, you will see that date axis is too full. I'm not sure what is the best solution to this issue, but after removing `interval = 1` in AutoDateLocator.get_locator after comment that says \"# We went through the whole loop without breaking, default to 1\", all my charts looked pretty well.\n(matplotlib 1.2.1)\n\n","author":{"url":"https://github.com/senyai","@type":"Person","name":"senyai"},"datePublished":"2013-05-29T15:33:29.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":6},"url":"https://github.com/2081/matplotlib/issues/2081"}
| 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:eee1c544-d6d8-aac8-fca1-85eff9a4c047 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BBAE:35AF44:5D38E3:7B2139:6A53EE5A |
| html-safe-nonce | fe6cb0cd8e26c73bafa1cfb243467447932e29fb967b075af2af5fb0b405cab6 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQkFFOjM1QUY0NDo1RDM4RTM6N0IyMTM5OjZBNTNFRTVBIiwidmlzaXRvcl9pZCI6IjUzNTg3NzY1Mzc0NjU0ODI4NDIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 772bb646ba3a4ae86f59b5e4e17fe9844c109530b9eb728f0d06274fd5ca4c5f |
| hovercard-subject-tag | issue:14896211 |
| 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/2081/issue_layout |
| twitter:image | https://opengraph.githubassets.com/99dc2e5e628783dd2366d99e866b926d81702417832739b68395ffffd6df06c1/matplotlib/matplotlib/issues/2081 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/99dc2e5e628783dd2366d99e866b926d81702417832739b68395ffffd6df06c1/matplotlib/matplotlib/issues/2081 |
| og:image:alt | Let me start with the code: from datetime import datetime from matplotlib.dates import AutoDateLocator as ADL, _UTC as UTC dmin = datetime(2013, 1, 8, 14, 5, tzinfo=UTC()) dmax = datetime(2013, 5, ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | senyai |
| 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