Re: [matplotlib-devel] print_figure(), savefig() and file-like objects

2006-07-21 Thread Ken McIvor
Steve, I am aware of the caveats associated with the "name" attribute, which is why the code I sent you attempts to do the right thing when it doesn't exist. I hadn't considered the case of stdout, but you could probably detect situations like that by testing to see if the extension is th

Re: [matplotlib-devel] print_figure(), savefig() and file-like objects

2006-07-21 Thread Steven Chaplin
On Fri, 2006-07-21 at 17:21 -0500, Ken McIvor wrote: > On Jul 20, 2006, at 7:53 AM, Steven Chaplin wrote: > > > > However, print_figure() does not support writing to file objects in > > different formats because it only takes a 'filename' argument and > > does not > > have an argument to allow yo

[matplotlib-devel] for future reference: how to build an sdist

2006-07-21 Thread Andrew Straw
I just updated DEVNOTES with the following item: Make sure sdist builds setuptools-compatible release: Remove setup.cfg (or, if more than the [egg_info] section is in this file, remove the [egg_info] section). See http://mail.python.org/pipermail/distutils-sig/2006-July/006561.html for more info.