-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
WXAgg embedded navigation zoom, home, back not working #4109
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
what os? Does the problem exist with 1.4.3? |
And am I understanding correctly that the demo works correctly (in that pan/zoom/the navigation buttons all work) but if you embed the demo on another application it does not work correctly? |
Windows 7 Pro 64-bit |
I just made the 1.4.3 windows binaries visible https://sourceforge.net/projects/matplotlib/files/matplotlib/matplotlib-1.4.3/ 1.4.3rc1 is almost identical and would work too. |
It is not clear no me why this is a bug in mpl and not a bug in how you are doing the embedding. Can you provide us with a minimal example that fails to work? |
I am using wx version 2.8.12.1 (msw-unicode) |
My guess is that this commit is related: f237a74 |
Could this change #1849 have side effects like what I am seeing? |
#2316 is a pretty standard way of dealing with the deprecation of Wx.PySimpleApp. I can't imagine how it could cause the symptoms listed. Instead, I suspect it is related event handling and drawing. Yes, #1849 seems a likelier candidate. @digitalnumeric can you check that directly? Or bisect? |
#1849 was closed with out being merged as near as I can tell... |
Oops! You are right, of course. |
FYI: I tried to access the 1.4.3 link tacaswell provided but I got "The sourceforge.net website is temporarily in static offline mode." It looks like Christoph Gohlke site has it so I will get it from there to test with. |
Question: For mpl is there any benefit to using an exe installer over a wheel (whl)? Does the exe do anything other than copy files to the correct location? |
Cc: @cgohlke on the Windows question. |
Update: I have another graph with 3 subplots. self.axes_1 = self.figure.add_subplot(311)
self.axes_2 = self.figure.add_subplot(312)
self.axes_3 = self.figure.add_subplot(313) Zooming on the first/top two always draws the purple zoomed rectangle. The last one (bottom one) only draws it sometimes. They all always zoom, but the rectangle is not always drawn for the bottom graph. It is intermittent. |
@RobinD42 Any advice? |
Nothing comes to mind at the moment. Is there a small runnable sample that can be used to demonstrate the problem? |
Pinging again to repeat @RobinD42's request - is there a self-contained snippet we can run to re/confirm the issue? |
Closing as the main issue appears to be solved and there is no repro for the second issue. |
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:
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.
The text was updated successfully, but these errors were encountered: