Michael Droettboom wrote:
> Ok -- well, I'm genuinely sorry for wasting your time.

No waste. As I said, I'm investigating Graphics Context for other things 
anyway.

> Paul Kienzle made a change back in February that changed where 
> wx.Yield() gets called, that by side-effect seems to have fixed the 
> clipping slowness.

cool!

> One inherent slowness between Wx and WxAgg is that Wx needs to create a 
> wx.GraphicsPath using a Python loop over the data.

Yes, I suspect that is the biggest problem.

>  With the Agg 
> backend, we just pass NumPy arrays (without any copies) to the Agg 
> backend.  Perhaps wxPython needs to grow a similar interface...

I think it does, and with the numpy array protocol, it may. There is a 
Google Summer of Code project that may address this. If it doesn't get 
done there, it may get done for another SoC project that I"m mentoring, 
where we need better GraphicsContext performance with numpy arrays.

> As for your toy example, I don't see it getting significantly slower as 
> the number of points increases, but it does crash completely when I plot 
> more than about 11000 points (this is on RHEL4 with a locally-built 
> wxPython-2.8.6.1.)  I have updated it to emulate what matplotlib does 
> more closely (use CreatePath etc.)

Does is it still crash with your version? 11000 points really isn't that 
many.

> Lastly, be sure to do an SVN update on matplotlib -- there was a 
> clipping bug in the Wx backend that I have fixed.

thanks for the tip, and even more so, all your work on this.

-Chris



-- 
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

[EMAIL PROTECTED]

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to