savefig bug?

Hi all,

this looks wrong to me:

In [1]: plot([1,2,3])
Out[1]: [<matplotlib.lines.Line2D instance at 0x410dafec>]

In [2]: savefig('foo.png')

In [3]: !file foo.png
foo.png: PNG image data, 812 x 612, 8-bit/color RGBA, non-interlaced

In [4]: savefig('foo.eps')

In [5]: !file foo.eps
foo.eps: PostScript document text conforming at level 3.0 - type EPS

So far so good. BUT:

In [6]: savefig('foo.png')

In [7]: !file foo.png
foo.png: PostScript document text conforming at level 3.0

Something is remembering state where it shouldn't, and after a call to savefig() with an eps extension, further pngs are clobbered into eps. Is this a misuse of the library on my part? I read the savefig docstring, and I don't see an error in my usage.

Cheers,

f