Skip to content
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

some matplotlib examples incompatible with wxpython 2.9 #1048

Closed
vbr opened this issue Jul 31, 2012 · 2 comments
Closed

some matplotlib examples incompatible with wxpython 2.9 #1048

vbr opened this issue Jul 31, 2012 · 2 comments

Comments

@vbr
Copy link
Contributor

vbr commented Jul 31, 2012

Hi,
I noticed some compatibility problems while trying several code examples from the matplotlib web with wxpython2.9, some of them might be quirks on the wxpython site, which might be fixed there, however, in some cases an adaption for this newer versin would be necessary.
There were e.g. some cleanups and some name aliases have been removed, such as those containing ...Color...
I noticed this in wx.NamedColor, which appears in:

http://matplotlib.sourceforge.net/examples/user_interfaces/embedding_in_wx2.html
http://matplotlib.sourceforge.net/examples/user_interfaces/embedding_in_wx4.html
http://matplotlib.sourceforge.net/examples/user_interfaces/mathtext_wx.html
http://matplotlib.sourceforge.net/examples/user_interfaces/wxcursor_demo.html

A simple change to wx.NamedColour should be backwards compatible, as there are both names available in the previous version.

I also encountered problems with some parts of the wx backend, which don't appear in wxagg

i.e. the workaround is currently to replace:
from matplotlib.backends.backend_wx import NavigationToolbar2Wx

with
from matplotlib.backends.backend_wxagg import NavigationToolbar2WxAgg

However, it is likely, that this will eventually be fixed in the source code, rather than in the examples.
Unfortunately, I wasn't able to find the bug sofar.
I am not sure, whether there are some more comprehensive search options available, e.g. searching for wx at
http://matplotlib.sourceforge.net/search.html?q=wx
only lists the backend files; however, there are clearly some occurrences at least in the code examples as well.

regards,
Vlastimil Brom

@mdboom
Copy link
Member

mdboom commented Aug 3, 2012

Now that all of your PRs have been merged, should this be closed, or are there still more fixes to follow?

@vbr
Copy link
Contributor Author

vbr commented Aug 3, 2012

Thanks for merging,
I guess, this issue could be closed, (I actually hadn't noticed before, that I can do it myself.)
the remaining problems in non Agg wx backend seems to be beyond my coding competence.
vbr

@vbr vbr closed this as completed Aug 3, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants