Michael Droettboom wrote: > Christopher Barker wrote: >> For what it's worth, apparently you can speed up GraphicsContext code >> substantially if you use it right --
> Can you be more specific about this no. I haven't done much with it myself. > or provide a reference? A number of threads on the wxPython list. Here's a couple: http://aspn.activestate.com/ASPN/Mail/Message/wxpython-users/3519845 a quote from that: "" An interesting phenomena I've noticed is that the rendering speed is directly related to the number of pixels that get pushed - scale the tiger up to 500x500, with it all visible on screen, and it's slower. Scale it down to 10x10 and the rendering is lightning fast. Move it off screen so that only a portion shows, and it's even faster. """ This seems to indicate that clipping is efficient -- hmm. Here is another one: http://lists.wxwidgets.org/pipermail/wxpython-users/2007-August/067098.html > Eventually you do have to draw something > to the screen, right? yes. > Is there another way to do that besides going through a DC? It > doesn't seem possible to create a wx.GraphicsContext > without providing a DC (at least in Python). No, I think you've got that right. There is: """ wxGraphicsContext::CreateFromNative Creates a wxGraphicsContext from a native context. This native context must be eg a CGContextRef for Core Graphics, a Graphics pointer for GDIPlus or a cairo_t pointer for cairo. """ But I doubt we'd want to get into that for MPL. > In my testing, it seemed > that clipping of any kind caused a major decrease in speed, not the > kind of DC being used. If you can come up with an self-contained example of this, a post tot he wxPython list may yield results. Sorry I can't be more help. -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