Skip to content

WXAgg embedded navigation zoom, home, back not working #4109

Closed
@digitalnumeric

Description

@digitalnumeric

I have a figure canvas and navigation bar embedded in a wx.Dialog. In matplotlib version 1.2.1 and earlier the zoom, home, back (and pan) all worked fine. If I upgrade to 1.3 (or 1.4.2) zoom, home, and back stop working. Only pan works. Any time I zoom, the zoom rectangle is drawn but nothing happens. The zoom rectangle remains on the screen after I release the mouse button. If I then switch to pan and left-click to pan the zoom takes effect. Same thing with the home and back buttons. If I click them nothing happens until I switch to pan and actually left click and pan then they take effect.

I also tried this with the user interface example: embedding_in_wx2.py
Running it alone it is fine. If I put it in my app and do the following:

    def OnShowClicked(self, event):
        frame = CanvasFrame()
        frame.Show(True)

The window shows correctly, but the zoom, home, back don't work just as I described above.

I looked through the changes between 1.2.1 and >=1.3 but I didn't see anything that would point to this. What changed between these versions that might causes this issue.

How do I work around this issue? Is there an example somewhere that shows the right way to do things now to get zoom, home, back, etc. working again?

Thanks.

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