{"action":"created","issue":{"url":"https://api.github.com/repos/matplotlib/matplotlib/issues/5311","labels_url":"https://api.github.com/repos/matplotlib/matplotlib/issues/5311/labels{/name}","comments_url":"https://api.github.com/repos/matplotlib/matplotlib/issues/5311/comments","events_url":"https://api.github.com/repos/matplotlib/matplotlib/issues/5311/events","html_url":"https://github.com/matplotlib/matplotlib/issues/5311","id":113180705,"number":5311,"title":"_tickdir inaccurate","user":{"login":"nschloe","id":181628,"avatar_url":"https://avatars.githubusercontent.com/u/181628?v=3","gravatar_id":"","url":"https://api.github.com/users/nschloe","html_url":"https://github.com/nschloe","followers_url":"https://api.github.com/users/nschloe/followers","following_url":"https://api.github.com/users/nschloe/following{/other_user}","gists_url":"https://api.github.com/users/nschloe/gists{/gist_id}","starred_url":"https://api.github.com/users/nschloe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nschloe/subscriptions","organizations_url":"https://api.github.com/users/nschloe/orgs","repos_url":"https://api.github.com/users/nschloe/repos","events_url":"https://api.github.com/users/nschloe/events{/privacy}","received_events_url":"https://api.github.com/users/nschloe/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-10-24T20:10:52Z","updated_at":"2015-10-27T01:11:08Z","closed_at":null,"body":"When playing around with what pull request #5290 implements, I found that that `_ticksdir` isn't always quite accurate. Check out\r\n```python\r\nfrom matplotlib import pyplot as plt\r\n\r\ndef plot():\r\n    from matplotlib import style\r\n    import numpy as np\r\n    fig = plt.figure()\r\n    with plt.style.context(('ggplot')):\r\n        t = np.arange(0.0, 2.0, 0.1)\r\n        s = np.sin(2*np.pi*t)\r\n        plt.plot(t, s, 'o-', lw=4.1)\r\n    return fig\r\n\r\nf = plot()\r\nc = f.get_children()\r\nax = c[1]\r\nt = ax.xaxis.get_major_ticks()\r\nprint([tick._tickdir for tick in ax.xaxis.get_major_ticks()])\r\nplt.show()\r\n```\r\nClearly, all major ticks are facing `out`, but the `_tickdir`s are reported\r\n```python\r\n[u'out', u'out', u'in', u'in', u'in']\r\n```"},"comment":{"url":"https://api.github.com/repos/matplotlib/matplotlib/issues/comments/151331081","html_url":"https://github.com/matplotlib/matplotlib/issues/5311#issuecomment-151331081","issue_url":"https://api.github.com/repos/matplotlib/matplotlib/issues/5311","id":151331081,"user":{"login":"pizzathief","id":2662541,"avatar_url":"https://avatars.githubusercontent.com/u/2662541?v=3","gravatar_id":"","url":"https://api.github.com/users/pizzathief","html_url":"https://github.com/pizzathief","followers_url":"https://api.github.com/users/pizzathief/followers","following_url":"https://api.github.com/users/pizzathief/following{/other_user}","gists_url":"https://api.github.com/users/pizzathief/gists{/gist_id}","starred_url":"https://api.github.com/users/pizzathief/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pizzathief/subscriptions","organizations_url":"https://api.github.com/users/pizzathief/orgs","repos_url":"https://api.github.com/users/pizzathief/repos","events_url":"https://api.github.com/users/pizzathief/events{/privacy}","received_events_url":"https://api.github.com/users/pizzathief/received_events","type":"User","site_admin":false},"created_at":"2015-10-27T01:11:08Z","updated_at":"2015-10-27T01:11:08Z","body":"sigh, I've been poked, ok.\r\n\r\nfrom some preliminary hacking, I've found that if I replace the above plot() function with this:\r\n'''\r\ndef plot2():\r\n    import numpy as np\r\n    fig = plt.figure()\r\n    t = np.arange(0.0, 2.0, 0.1)\r\n    s = np.sin(2*np.pi*t)\r\n    plt.plot(t, s, 'o-', lw=4.1)\r\n    return fig\r\n'''\r\nie, no plt.style.context(('ggplot')) command, \r\nreturns ['in', 'in', 'in', 'in', 'in']\r\n\r\nso 'ggplot' is playing funny-buggers with ticks."}}