[Numpy-discussion] is there any alternative to savefig?
Dag Sverre Seljebotn
Thu Jan 28 07:00:25 CST 2010
Robert Kiwanuka wrote:
> Hi all,
> I wonder if anyone knows any alternative function in pylab (or
> otherwise) that could be used to save an image. My problem is as
> from pylab import *
> fig1 = gca()
> fig2 = gca()
> fig3 = gca()
You should not use the pylab interface for stuff like this. This is much
easier if you get rid of the notion of "current plot".
from matplotlib import pyplot as plt
fig1 = plt.figure()
ax1 = fig1.add_subplot(111)
Etc., see matplotlib docs.
More information about the NumPy-Discussion