wxPython 2.8

does matplotlib already support wxPython 2.8?

I have not had the opportunity to test it with 2.8. However, I am given to understand that it works. The one caveat is that you cannot presently compile the WXAgg accelerator with 2.8. Everything will still work without, but animation is slower.

Ken

···

On Jan 21, 2007, at 11:04 AM, Allan Noriel Estrella wrote:

does matplotlib already support wxPython 2.8?

Ken McIvor wrote:

does matplotlib already support wxPython 2.8?

I have not had the opportunity to test it with 2.8. However, I am given to understand that it works. The one caveat is that you cannot presently compile the WXAgg accelerator with 2.8.

I've tested it with 2.8 on OS-X, and it can be compiled with an almost trivial fix.

There is an odd bug with the standard pylab toolbar: the icons on the buttons disappear after they have been clicked once, though the buttons do still work.

What platform do you want it on? Are you set up to compile it yourself?

NOTE: wxPython2.8 has added some features for more directly creating bitmaps from data. It would be great if someone used those in the back-end -- if it works well, we might be able to get rid of the accelerated back end altogether. You can search this list for more info -- look for posts by me and Ken McIvor.

Here's a bit more detail about the current state of affairs (this was recently posted on matplotlib-devel:

Russell Owen just built an installer for MPL on OS_X for Python2.5,
wxPython2.8.

To do it, he needed to patch

_wxagg.cpp, at line 238 as follows:

OLD:
wxBitmap *bitmap = new wxBitmap(image);
NEW
wxBitmap *bitmap = new wxBitmap(*image);

Thanks to a hint from Robin Dunn.

It now seems to work OK, except that when you use pylab.show() and then
click on the toolbar buttons to zoom, etc, the buttons no longer display

Also, it doesn't work with Numeric 24.2 either -- I think that's a known
issue, but I can't find a note about it at the moment.

Is anyone maintaining the wx back-end now?

Is MPL working with wxPython 2.8 on other platforms?

If anyone wants to try this binary out, it's temporarily at:

<http://www.astro.washington.edu/rowen/pythonpackages/Python%202.5/>

  >>> matplotlib.__version__
'0.87.7'
  >>> wx.__version__
'2.8.0.1'
  >>> numpy.__version__
'1.0.1'
  >>> Numeric.__version__
'24.2'

-Chris

···

On Jan 21, 2007, at 11:04 AM, Allan Noriel Estrella wrote:

--
Christopher Barker, Ph.D.
Oceanographer

Emergency Response Division
NOAA/NOS/OR&R (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception

Chris.Barker@...259...