Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

some matplotlib examples incompatible with wxpython 2.9 #1048

Closed
vbr opened this Issue · 2 comments

2 participants

@vbr

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
Owner

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

@vbr
vbr commented

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.