{"action":"opened","issue":{"url":"https://api.github.com/repos/matplotlib/matplotlib/issues/7712","repository_url":"https://api.github.com/repos/matplotlib/matplotlib","labels_url":"https://api.github.com/repos/matplotlib/matplotlib/issues/7712/labels{/name}","comments_url":"https://api.github.com/repos/matplotlib/matplotlib/issues/7712/comments","events_url":"https://api.github.com/repos/matplotlib/matplotlib/issues/7712/events","html_url":"https://github.com/matplotlib/matplotlib/issues/7712","id":198228748,"number":7712,"title":"Number of ticks for dates still gives overlapping labels","user":{"login":"jorisvandenbossche","id":1020496,"avatar_url":"https://avatars.githubusercontent.com/u/1020496?v=3","gravatar_id":"","url":"https://api.github.com/users/jorisvandenbossche","html_url":"https://github.com/jorisvandenbossche","followers_url":"https://api.github.com/users/jorisvandenbossche/followers","following_url":"https://api.github.com/users/jorisvandenbossche/following{/other_user}","gists_url":"https://api.github.com/users/jorisvandenbossche/gists{/gist_id}","starred_url":"https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jorisvandenbossche/subscriptions","organizations_url":"https://api.github.com/users/jorisvandenbossche/orgs","repos_url":"https://api.github.com/users/jorisvandenbossche/repos","events_url":"https://api.github.com/users/jorisvandenbossche/events{/privacy}","received_events_url":"https://api.github.com/users/jorisvandenbossche/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-12-31T11:23:52Z","updated_at":"2016-12-31T11:23:52Z","closed_at":null,"body":"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>>> import matplotlib\r\n>>> import matplotlib.pyplot as plt\r\n>>> matplotlib.__version__\r\n'2.0.0rc2'\r\n>>> import datetime\r\n>>> dates = [datetime.datetime(2016,1,i) for i in range(1,30)]\r\n>>> values = list(range(1,30))\r\n>>> plt.plot(dates, values)\r\n[<matplotlib.lines.Line2D object at 0x7f41327d2e80>]\r\n>>> plt.show()\r\n```\r\n\r\n![figure_1-2](https://cloud.githubusercontent.com/assets/1020496/21577206/3aab28a0-cf53-11e6-99b3-53d4301b328a.png)\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)"}}
{"actor":{"display_login":"jorisvandenbossche"}}