-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
WX Phoenix AttributeError: 'NavigationToolbar2WxAgg' issue #4460
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
By the way this is doing the simplest plot that I can think of import matplotlib
matplotlib.use('WXAgg')
import matplotlib.pyplot as plt
plt.plot(range(100))
plt.show() |
attn: @wernerfb |
mpl.pyplot uses FigureFrameWx which isn't used by the embedding_in_wx* samples. After the following change the sample code runs for me on Windows, but no plot is shown, will try to work on this some more next week. A quick hack (as I don't see how to get that into wx_compat) for this is to make the following change around line 1274: |
With Py2.7 and 3.0.2 classic I see a crash with no traceback when I run it from the command line, when I run it against Phoenix I see this traceback: Error in atexit._run_exitfuncs: Don't understand what mpl.pyplot does here, why destroy the frame? Hope someone who does use mpl.pyplot with wx can jump in and help on this. |
Chances are, for some reason there is a different exception being thrown, On Sun, May 24, 2015 at 12:32 PM, Werner F Bruhin [email protected]
|
Will give that a try, will also have to figure out how the wx app is created when one uses mpl.pyplot, hopefully I will find time sometimes towards the end of next week. |
closed by #4479 |
Trying to test the new WX Phonix backend under Python3 I get the following error:
From my limited debugging it seems like GetSizeTuple is no more and we should use GetSize and unpack it manually.
Im using wxPython-Phoenix (3.0.3.dev1820+49a8884) on python 3.4.3 (Homebrew OSX 10.10)
The text was updated successfully, but these errors were encountered: