>>>>> "Glen" == Glen W Mabey <[EMAIL PROTECTED]> writes: Glen> I'm a bit confused as to where the exception is actually Glen> getting raised. I suppose the renderer's write_png method Glen> must be in C?
Glen> I implemented a tempfile solution, but I'm surprised that Glen> the cStringIO doesn't already work. Glen> <fellowsophical_question> Glen> Should it? Glen> </fellowsophical_question> It should and I've looked at it but couldn't figure it out. The relevant method is RendererAgg::write_png in src/_backend_agg.cpp. Someone should pull up some PIL code (which I think supports this) and figure out how it is done. The png method I am using uses a FILE* pointer -- I've posted on python list how to get a FILE* from cStringIO but got no help. There may be a more-better-different libpng method that can work with some other interface. JDH ------------------------------------------------------------------------- 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