You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
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
The text was updated successfully, but these errors were encountered:
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
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
The text was updated successfully, but these errors were encountered: