{"action":"created","issue":{"url":"https://api.github.com/repos/pydata/pandas/issues/9164","labels_url":"https://api.github.com/repos/pydata/pandas/issues/9164/labels{/name}","comments_url":"https://api.github.com/repos/pydata/pandas/issues/9164/comments","events_url":"https://api.github.com/repos/pydata/pandas/issues/9164/events","html_url":"https://github.com/pydata/pandas/pull/9164","id":52982304,"number":9164,"title":"BUG: hidden ticklabels with sharex and secondary","user":{"login":"TomAugspurger","id":1312546,"avatar_url":"https://avatars.githubusercontent.com/u/1312546?v=3","gravatar_id":"","url":"https://api.github.com/users/TomAugspurger","html_url":"https://github.com/TomAugspurger","followers_url":"https://api.github.com/users/TomAugspurger/followers","following_url":"https://api.github.com/users/TomAugspurger/following{/other_user}","gists_url":"https://api.github.com/users/TomAugspurger/gists{/gist_id}","starred_url":"https://api.github.com/users/TomAugspurger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TomAugspurger/subscriptions","organizations_url":"https://api.github.com/users/TomAugspurger/orgs","repos_url":"https://api.github.com/users/TomAugspurger/repos","events_url":"https://api.github.com/users/TomAugspurger/events{/privacy}","received_events_url":"https://api.github.com/users/TomAugspurger/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/pydata/pandas/labels/Visualization","name":"Visualization","color":"8AE234"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/pydata/pandas/milestones/29","html_url":"https://github.com/pydata/pandas/milestones/0.16.1","labels_url":"https://api.github.com/repos/pydata/pandas/milestones/29/labels","id":816810,"number":29,"title":"0.16.1","description":"after 0.16.0 of course!","creator":{"login":"jreback","id":953992,"avatar_url":"https://avatars.githubusercontent.com/u/953992?v=3","gravatar_id":"","url":"https://api.github.com/users/jreback","html_url":"https://github.com/jreback","followers_url":"https://api.github.com/users/jreback/followers","following_url":"https://api.github.com/users/jreback/following{/other_user}","gists_url":"https://api.github.com/users/jreback/gists{/gist_id}","starred_url":"https://api.github.com/users/jreback/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jreback/subscriptions","organizations_url":"https://api.github.com/users/jreback/orgs","repos_url":"https://api.github.com/users/jreback/repos","events_url":"https://api.github.com/users/jreback/events{/privacy}","received_events_url":"https://api.github.com/users/jreback/received_events","type":"User","site_admin":false},"open_issues":0,"closed_issues":235,"state":"closed","created_at":"2014-10-07T14:39:07Z","updated_at":"2015-07-23T11:02:04Z","due_on":"2015-05-11T04:00:00Z","closed_at":"2015-05-11T15:46:03Z"},"comments":8,"created_at":"2014-12-28T14:28:29Z","updated_at":"2015-10-31T02:39:15Z","closed_at":"2015-04-20T12:12:47Z","pull_request":{"url":"https://api.github.com/repos/pydata/pandas/pulls/9164","html_url":"https://github.com/pydata/pandas/pull/9164","diff_url":"https://github.com/pydata/pandas/pull/9164.diff","patch_url":"https://github.com/pydata/pandas/pull/9164.patch"},"body":"Closes https://github.com/pydata/pandas/issues/9158\r\n\r\n```python\r\nimport pandas as pd\r\nd = {'A' : [1., 2., 3., 4.], 'B' : [4., 3., 2., 1.], 'C': [5, 1, 3, 4]}\r\ndf = pd.DataFrame(d, index=pd.date_range('2014 10 11', '2014 10 14'))\r\n\r\naxes = df[['A','B']].plot(subplots=True)\r\ndf['C'].plot(ax=axes[0], secondary_y=True)   # x tick labels dissappear when this line is executed\r\n```\r\n![gh](https://cloud.githubusercontent.com/assets/1312546/7216419/ffe3bc2e-e5c4-11e4-89de-d18e5e59d3b0.png)\r\n\r\nIntroduced in the subplot refactoring in https://github.com/pydata/pandas/pull/7457\r\n\r\ncc @sinhrks\r\n\r\nThe fix is pretty simple, but I'm worried I may have broken other things. No tests failed though, so hopefully we're good."},"comment":{"url":"https://api.github.com/repos/pydata/pandas/issues/comments/152687890","html_url":"https://github.com/pydata/pandas/pull/9164#issuecomment-152687890","issue_url":"https://api.github.com/repos/pydata/pandas/issues/9164","id":152687890,"user":{"login":"shadowleaves","id":5053963,"avatar_url":"https://avatars.githubusercontent.com/u/5053963?v=3","gravatar_id":"","url":"https://api.github.com/users/shadowleaves","html_url":"https://github.com/shadowleaves","followers_url":"https://api.github.com/users/shadowleaves/followers","following_url":"https://api.github.com/users/shadowleaves/following{/other_user}","gists_url":"https://api.github.com/users/shadowleaves/gists{/gist_id}","starred_url":"https://api.github.com/users/shadowleaves/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shadowleaves/subscriptions","organizations_url":"https://api.github.com/users/shadowleaves/orgs","repos_url":"https://api.github.com/users/shadowleaves/repos","events_url":"https://api.github.com/users/shadowleaves/events{/privacy}","received_events_url":"https://api.github.com/users/shadowleaves/received_events","type":"User","site_admin":false},"created_at":"2015-10-31T02:39:15Z","updated_at":"2015-10-31T02:39:15Z","body":"this problem seems to be still existing in pandas 0.17.0, on subplots with at least two rows:\r\n\r\n```python\r\nimport numpy as np\r\nimport pandas as pd\r\nfrom matplotlib import pyplot as plt\r\n\r\nmat = np.random.rand(10,2)\r\ndf = pd.DataFrame(mat, columns=['A','B'])\r\n\r\nfig, axes = plt.subplots(nrows=2, ncols=2)                                 \r\ndf.plot(secondary_y='B', ax=axes[0, 1], legend=False)\r\n```\r\n\r\n![image](https://cloud.githubusercontent.com/assets/5053963/10861467/dd738f4e-7f56-11e5-8db9-e30582765b8f.png)\r\n\r\n\r\n"}}