{"action":"opened","issue":{"url":"https://api.github.com/repos/matplotlib/matplotlib/issues/8392","repository_url":"https://api.github.com/repos/matplotlib/matplotlib","labels_url":"https://api.github.com/repos/matplotlib/matplotlib/issues/8392/labels{/name}","comments_url":"https://api.github.com/repos/matplotlib/matplotlib/issues/8392/comments","events_url":"https://api.github.com/repos/matplotlib/matplotlib/issues/8392/events","html_url":"https://github.com/matplotlib/matplotlib/issues/8392","id":217424265,"number":8392,"title":"shared twinned subplots: support `ax.twinx(sharey=...)` / `ax.twiny(sharex=...)`","user":{"login":"anntzer","id":1322974,"avatar_url":"https://avatars3.githubusercontent.com/u/1322974?v=3","gravatar_id":"","url":"https://api.github.com/users/anntzer","html_url":"https://github.com/anntzer","followers_url":"https://api.github.com/users/anntzer/followers","following_url":"https://api.github.com/users/anntzer/following{/other_user}","gists_url":"https://api.github.com/users/anntzer/gists{/gist_id}","starred_url":"https://api.github.com/users/anntzer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anntzer/subscriptions","organizations_url":"https://api.github.com/users/anntzer/orgs","repos_url":"https://api.github.com/users/anntzer/repos","events_url":"https://api.github.com/users/anntzer/events{/privacy}","received_events_url":"https://api.github.com/users/anntzer/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-03-28T01:47:10Z","updated_at":"2017-03-28T01:47:10Z","closed_at":null,"body":"After\r\n```\r\nfig, (ax1, ax2) = plt.subplots(2, sharex=True, sharey=True)\r\nax1.plot([1, 2]); ax2.plot([1, 2])\r\nax1.twinx().plot([2, 1]); ax2.twinx().plot([2, 1])\r\n```\r\nzooming/panning one of the subplots only affects the other subplot along the x axis, but not the y axis -- because zooming/panning affects the twinned subplots, which only share their x axis, whereas the y sharing is lost (of course, it cannot always be shared with the original subplots -- the sharing needs to occur directly between the twinned subplots).\r\n\r\nHaving thought approximately 30s about the issue, I believe an easy way out would be to support passing an explicit `share{y,x}` argument to `twin{x,y}` (for the \"other\" axis, as the twinned axis is already shared with the original subplot, of course), so that one can properly re-link the twinned subplots between themselves."}}
{"actor":{"display_login":"anntzer"}}