Title: Number of ticks for dates still gives overlapping labels · Issue #7712 · matplotlib/matplotlib · GitHub
Open Graph Title: Number of ticks for dates still gives overlapping labels · Issue #7712 · matplotlib/matplotlib
X Title: Number of ticks for dates still gives overlapping labels · Issue #7712 · matplotlib/matplotlib
Description: Matplotlib 2.0 introduced better default tick locators to have a better (often less) number of ticks (http://matplotlib.org/devdocs/users/dflt_style_changes.html#number-of-ticks) that prevents overlap of ticklabels. Which is a really nic...
Open Graph Description: Matplotlib 2.0 introduced better default tick locators to have a better (often less) number of ticks (http://matplotlib.org/devdocs/users/dflt_style_changes.html#number-of-ticks) that prevents over...
X Description: Matplotlib 2.0 introduced better default tick locators to have a better (often less) number of ticks (http://matplotlib.org/devdocs/users/dflt_style_changes.html#number-of-ticks) that prevents over...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/7712
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Number of ticks for dates still gives overlapping labels","articleBody":"Matplotlib 2.0 introduced better default tick locators to have a better (often less) number of ticks (http://matplotlib.org/devdocs/users/dflt_style_changes.html#number-of-ticks) that prevents overlap of ticklabels. Which is a really nice enhancement, only it seems that this enhancement is not working for datetime tick labels:\r\n\r\n```\r\n\u003e\u003e\u003e import matplotlib\r\n\u003e\u003e\u003e import matplotlib.pyplot as plt\r\n\u003e\u003e\u003e matplotlib.__version__\r\n'2.0.0rc2'\r\n\u003e\u003e\u003e import datetime\r\n\u003e\u003e\u003e dates = [datetime.datetime(2016,1,i) for i in range(1,30)]\r\n\u003e\u003e\u003e values = list(range(1,30))\r\n\u003e\u003e\u003e plt.plot(dates, values)\r\n[\u003cmatplotlib.lines.Line2D object at 0x7f41327d2e80\u003e]\r\n\u003e\u003e\u003e plt.show()\r\n```\r\n\r\n\r\n\r\nThis still gives the 'too much' tick labels like before (actually, the same plot but with integer x values gives fewer ticks).\r\n\r\nIs there a technical reason for this? (the `DateLocator` using another mechanism to determine the number of ticks as the default `AutoLocator`)\r\n\r\nMatplotlib 2.0.0rc2 (installed from conda-forge)","author":{"url":"https://github.com/jorisvandenbossche","@type":"Person","name":"jorisvandenbossche"},"datePublished":"2016-12-31T11:23:52.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":7},"url":"https://github.com/7712/matplotlib/issues/7712"}
| 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:b5d60052-3956-08e4-07d2-d4c0dd489d7d |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E52C:240794:A209A1:D6D541:6A5318ED |
| html-safe-nonce | 05c2e5c8a578917350dde146081835c8a69c14c0611b9dd5fd80aa1c4b49027a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNTJDOjI0MDc5NDpBMjA5QTE6RDZENTQxOjZBNTMxOEVEIiwidmlzaXRvcl9pZCI6IjE1OTQ1ODQ5ODkyODIwMTU0NjkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | d1cf69cbe4279e8f2f9fc161807e4d755973a66a62a6b65887023ef68cf0a55f |
| hovercard-subject-tag | issue:198228748 |
| 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/7712/issue_layout |
| twitter:image | https://opengraph.githubassets.com/999e153d16d84121769f9cc0fa31b5afc05ea3283de98f8d85908f8104d937dd/matplotlib/matplotlib/issues/7712 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/999e153d16d84121769f9cc0fa31b5afc05ea3283de98f8d85908f8104d937dd/matplotlib/matplotlib/issues/7712 |
| og:image:alt | Matplotlib 2.0 introduced better default tick locators to have a better (often less) number of ticks (http://matplotlib.org/devdocs/users/dflt_style_changes.html#number-of-ticks) that prevents over... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | jorisvandenbossche |
| 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