[Matplotlib-users] re ndered objects (esp. SVG)

2007-12-11 Thread bplewe
[Fairly new at matplotlib, but very happy with it so far] Is it possible to retrieve images rendered by one of the backends as an object, rather than just saving to a file? Specifically, I need to render graphs to SVG code, that I can turn into a DOM object for further manipulation. I can

Re: [Matplotlib-users] re ndered objects (esp. SVG)

2007-12-11 Thread Michael Droettboom
[I only seem to be getting this message from the list today, despite the timestamp of 2007-12-05. Sorry for the delay.] As of matplotlib 0.91.1, savefig() supports saving to a file-like object for most backends (excluding Gtk and Wx). You can pass in a StringIO object to savefig for

Re: [Matplotlib-users] re ndered objects (esp. SVG)

2007-12-11 Thread Michael Droettboom
I should add that in 0.91.1, you'll be hit by this bug: http://sourceforge.net/mailarchive/message.php?msg_name=475ED00A.400%40stsci.edu You can wait for 0.91.2, or patch your cbook.py as suggested by Brandon in the above thread. Cheers, Mike Michael Droettboom wrote: [I only seem to be