John Hunter wrote:
> Charlie, since you are pretty familiar with the blitting API, perhaps
> you could take a look and see how much work it would be to do wx
> blitting w/o extension code.  I'd be happy to add some additional
> helper methods in agg if need be, as we did for qt.

Didn't MPL originally use the Python API, but with less than stellar 
performance? I'm not sure how efficient we can get without making 
changes to wx. However, I think Robin Dunn is pretty open to making some 
of those changes.

For one, he told me a while back that he was going to try to expose some 
of the API for working directly with wxBitmaps. If we could dump data 
straight into a wxBitmap, that would be the best option. That's likely 
to be tricky, however, as a wxBitmap is a wrapper around whatever the 
platform-native format is for a Bitmap. However, while there are a lot 
of possible formats for native Bitmaps, 24bit RGB is pretty darn common, 
if we could get top performance from that from that format, we'd be a 
long way in the right direction.

Another (or additional) option is for both MPL and wx to support the new 
array interface protocol in numpy. There's a lot of other reasons to do 
that, and, again, Robin has expressed his support for this. If we could 
get MPL, wx, numpy, and PIL all passing data around with this protocol, 
we'd be in great shape. Travis posted a patch to PIL for support a while 
back, I don't know if it's going to get applied or not, but it's worth 
looking at.

Another place to look for idea is Enthought's Kiva -- It's Agg back-end 
interacts well with wx -- or so I've heard. I haven't tried it yet myself.

I'm no C++ wiz, but I'd be willing to help with the wx modifications -- 
it's been on my list for a while. Should I send a note to Robin Dunn for 
ideas?

-Chris






-- 
Christopher Barker, Ph.D.
Oceanographer
                                                
NOAA/OR&R/HAZMAT         (206) 526-6959   voice
7600 Sand Point Way NE   (206) 526-6329   fax
Seattle, WA  98115       (206) 526-6317   main reception

[EMAIL PROTECTED]

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to