FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Panning and zooming does not work on axes created with twinx (and twiny) · Issue #1501 · matplotlib/matplotlib · GitHub

Repository navigation

Panning and zooming does not work on axes created with twinx (and twiny) #1501

Closed

Description

See: http://matplotlib.org/examples/axes_grid/demo_parasite_axes2.html

If a plot is created like in the example above (using host_subplot for the host axes and twinx for the twin axes), panning or zooming does not work like in the case of the main axes. The twin axes seem to be fixed, i.e. their axis limits are not changed upon zooming or panning. This issue does not appear on the x-axis, only on y-axis (using twinx). This causes problems with interactive plots when zooming or panning is intented to show a part of the plotted lines.

During vertical panning only the plots of the host axes are panned but the twin ones do not react. If panned in the horizontal direction everything works fine.

If zoomed in on an area where only the plots on the host axes should be seen both twin axes are visible. Actually the twin axes are zoomed in but only on the x-axis as if the zoom would be used on their x-axis only.

The problem seems to appear only with mpl_toolkits.axes_grid1; pyplot.figure and pylab.figure work fine. I have tried both matplotlib 1.1 and 1.2. Both versions have this problem. I am using Python 2.7.2 on a Windows 7 64 bit machine.

Activity

  1. ivanov commented on Nov 15, 2012

    Member

    thanks for the report, @TPeter85 - I'm confirming this bug on master using QT under Debian sid.

    My reaction (outside of the fact that the behavior of axes_grid1 should be consistent with using plt.figure), is that sometimes this will be the behavior one wants, so I'll open another ticket for making that happen

  2. jozsag commented on Nov 18, 2012

    I agree, it is indeed a misleading behavior, nice report.

  3. rozsat commented on Nov 28, 2012

    +1

  4. tacaswell commented on Aug 18, 2014

    Member

    Closing this as we have #1502 open.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions


      Back | FazBrowse Home | New Git URL