From: John H. <jd...@gm...> - 2007-06-28 16:22:19
|
On 6/28/07, Nicolas <nic...@ya...> wrote: > Thanks for your reply. > > However, I don't want to had a PIL dependency. > > Is there any other method, using only matplotlib or wx ? agg offers methods to convert the image pixel buffer to strings or buffers, which you could then convert to numpy arrays, so a slice extraction, and reconvert back to a buffer and ultimately a PNG. I don't have time right now to write some example code, but you may want to poke around in backend_agg to see if you can figure it out, and if not remind me next week. Thanks, JDH |