On 6/28/07, Nicolas <[EMAIL PROTECTED]> 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 ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users