Title: transiently linked interactivity of unshared pair of axes generated with make_axes_locatable · Issue #12613 · matplotlib/matplotlib · GitHub
Open Graph Title: transiently linked interactivity of unshared pair of axes generated with make_axes_locatable · Issue #12613 · matplotlib/matplotlib
X Title: transiently linked interactivity of unshared pair of axes generated with make_axes_locatable · Issue #12613 · matplotlib/matplotlib
Description: Bug report Bug summary In panning mode of the figure window, all vertical and the common horizontal axes are affected by the very first drag of the mouse, irrespective of the subplot addressed by the mouse. After that, which of the verti...
Open Graph Description: Bug report Bug summary In panning mode of the figure window, all vertical and the common horizontal axes are affected by the very first drag of the mouse, irrespective of the subplot addressed by t...
X Description: Bug report Bug summary In panning mode of the figure window, all vertical and the common horizontal axes are affected by the very first drag of the mouse, irrespective of the subplot addressed by t...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/12613
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"transiently linked interactivity of unshared pair of axes generated with make_axes_locatable ","articleBody":"\u003c!--To help us understand and resolve your issue, please fill out the form to the best of your ability.--\u003e\r\n\u003c!--You can feel free to delete the sections that do not apply.--\u003e\r\n\r\n### Bug report\r\n\r\n**Bug summary**\r\n\r\nIn panning mode of the figure window, all vertical and the common horizontal axes are affected by the very first drag of the mouse, irrespective of the subplot addressed by the mouse. After that, which of the vertical axes are affected depends on the addressed subplot (almost as expected).\r\n\r\n**Code for reproduction**\r\n```python\r\nimport matplotlib.pyplot as plt\r\nfrom mpl_toolkits.axes_grid1 import make_axes_locatable\r\n\r\nfig, ax1 = plt.subplots()\r\nax2 = ax1.twinx()\r\nax_top = make_axes_locatable(ax1).append_axes('top', size=1.2, pad=0., sharex=ax1)\r\nax_top.xaxis.set_tick_params(labelbottom=False)\r\nax1.plot([0, 1, 2], [0, 1, 0])\r\nax2.plot([0, 1, 2], [10, 10, 11])\r\nax_top.plot([0, 1, 2], [90, 91, 90])\r\n#ax_top.set_navigate(False)\r\nplt.show()\r\n```\r\n**Actual outcome**\r\n\r\n(A bug that may be related: The right axis extends (with tick marks and tick labels) over the full height including the top subplot, although the right axis is autoscaled so that the trace assigned to it fits into the lower subplot as I expected.)\r\n\r\n1. On the very first mouse gesture ... (see Bug sumary).\r\n2. On subsequent mouse gestures in the top subplot, still all axes are affected.\r\n3. On subsequent mouse gestures in the lower subplot, only the two vertical axes of that subplot, left and right, are affected (besides the common x axis).\r\n\r\n**Expected outcome**\r\n\r\n1. The first drag should not behave differently.\r\n2. A drag in the top subplot should only affect the axes of that subplot.\r\n3. Expected as observed.\r\n\r\nIf it is not needed to interactively change the top left axis, a workaround would be `ax_top.set_navigate(False)`. This works also for the very first drag.\r\n\r\n**Matplotlib version**\r\n\u003c!--Please specify your platform and versions of the relevant libraries you are using:--\u003e\r\n * Operating system: Windows 7\r\n * Matplotlib version: 3.0.0\r\n * Matplotlib backend: TkAgg\r\n * Python version: 3.6.1\r\nInstalled using pip\r\n","author":{"url":"https://github.com/Rainald62","@type":"Person","name":"Rainald62"},"datePublished":"2018-10-24T11:20:39.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":9},"url":"https://github.com/12613/matplotlib/issues/12613"}
| 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:b1c01c22-b666-48a2-e0fd-499f15c07ebb |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9B42:1C4081:1F7955:2A60AB:6A5287DA |
| html-safe-nonce | 7fd10a9b993948c5a1484e7c332820e56521c77f13b0148259f0bf234228c858 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5QjQyOjFDNDA4MToxRjc5NTU6MkE2MEFCOjZBNTI4N0RBIiwidmlzaXRvcl9pZCI6IjM3NTQ3NjYwODEwMjczNzcxMTQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | e6f2a94da51108e4776256eed8dbb62acacf1ab0c186c3991c6b7604ec68e266 |
| hovercard-subject-tag | issue:373432251 |
| 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/12613/issue_layout |
| twitter:image | https://opengraph.githubassets.com/775e31032aea02889c5f2237bdca766921ee8051a12d36bd01897aa242ea9f35/matplotlib/matplotlib/issues/12613 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/775e31032aea02889c5f2237bdca766921ee8051a12d36bd01897aa242ea9f35/matplotlib/matplotlib/issues/12613 |
| og:image:alt | Bug report Bug summary In panning mode of the figure window, all vertical and the common horizontal axes are affected by the very first drag of the mouse, irrespective of the subplot addressed by t... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Rainald62 |
| 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