GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Panning and zooming does not work on axes created with twinx (and twiny) · Issue #1501 · matplotlib/matplotlib

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

New issue
Copy link
New issue
Copy link
Closed
Closed
Panning and zooming does not work on axes created with twinx (and twiny)#1501
Copy link
Labels
status: confirmed bugtopic: mpl_toolkit

Description

@TPeter85
TPeter85
opened on Nov 15, 2012
Issue body actions

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

    @ivanov
    ivanov
    on Nov 15, 2012
    Member
    More actions

    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

    @jozsag
    jozsag
    on Nov 18, 2012
    More actions

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

  3. rozsat commented on Nov 28, 2012

    @rozsat
    rozsat
    on Nov 28, 2012
    More actions

    +1

  4. tacaswell commented on Aug 18, 2014

    @tacaswell
    tacaswell
    on Aug 18, 2014
    Member
    More actions

    Closing this as we have #1502 open.

  5. tacaswell
    closed this as completedon Aug 18, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: confirmed bugtopic: mpl_toolkit

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.