Re: [Matplotlib-users] cannot savefig to cStringIO

2006-11-10 Thread John Hunter
> "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

[Matplotlib-users] cannot savefig to cStringIO

2006-11-08 Thread Glen W. Mabey
Hello! I'm dynamically dishing out plots via matplotlib through a web server, so I really want to savefig to some type of memory object. Using both os.pipe and cStringIO objects, I get this type of error: In [9]:%history 1 : import matplotlib 2 : matplotlib.use('Agg') 3 : import pylab 4 : ax =