some matplotlib examples incompatible with wxpython 2.9 #1048

vbr opened this Issue Jul 31, 2012 · 2 comments

2 participants


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:

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

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
only lists the backend files; however, there are clearly some occurrences at least in the code examples as well.

Vlastimil Brom

Matplotlib Developers member

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

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 closed this Aug 3, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment