Re: [Matplotlib-users] how to create 2 plots?

2013-08-12 Thread vwf
On Tue, Aug 13, 2013 at 04:43:19PM +1000, Stephen Gibson wrote: > Call 'figure()' for each plot. Like this you mean? import matplotlib.pyplot as plt a=plt.figure() a=plt.plot([1, 2], [1, 2]) plt.savefig('1.png', dpi=100) a=plt.figure() a=plt.plot([1, 2], [2,1]) plt.savefig('2.png', dpi=100) T

Re: [Matplotlib-users] how to create 2 plots?

2013-08-12 Thread Eric Firing
On 2013/08/12 8:35 PM, vwf wrote: > Thank you for you reply. I tried to create one after the other but when > I did this my second plot was on top of the first one. The old plot > needs to be "flushed" before starting the second one. > > This doesn't work: > import matplotlib.pyplot as plt > a=plt.

Re: [Matplotlib-users] how to create 2 plots?

2013-08-12 Thread Stephen Gibson
Call 'figure()' for each plot. see: http://matplotlib.org/api/pyplot_api.html matplotlib.pyplot.figure(/num=None/, /figsize=None/, /dpi=None/, /facecolor=None/, /edgecolor=None/, /frameon=True/, /FigureClass='matplotlib.figure.Figure'>/, /**kwargs/) Creates a new figure. Parameter

Re: [Matplotlib-users] how to create 2 plots?

2013-08-12 Thread vwf
Thank you for you reply. I tried to create one after the other but when I did this my second plot was on top of the first one. The old plot needs to be "flushed" before starting the second one. This doesn't work: import matplotlib.pyplot as plt a=plt.plot([1, 2], [1, 2]) plt.savefig('1.png', dpi=1

Re: [Matplotlib-users] how to create 2 plots?

2013-08-12 Thread Joseph Hardin
Can you provide us with more information? You can create one plot, save it, and then create the second, or is there something more specific you are looking for? On Mon, Aug 12, 2013 at 11:58 PM, vwf wrote: > Hello, > > I need to create two plots (png files) in one go, two unrelated views of > t

[Matplotlib-users] how to create 2 plots?

2013-08-12 Thread vwf
Hello, I need to create two plots (png files) in one go, two unrelated views of the same dataset. There is good documentation about subplots but I cannot locate documentation about two plots. Can someone tell me how it is done? -

Re: [Matplotlib-users] [matplotlib-devel] Calling to those "embedding" matplotlib in applications

2013-08-12 Thread Chris Barker - NOAA Federal
On Mon, Aug 12, 2013 at 7:01 AM, Michael Droettboom wrote: > I propose to fix this by turning on interactive only when > running at an interactive console. I embed MPL more than other uses, and this sounds like a fine solution to me/ Thanks, -Chris -- Christopher Barker, Ph.D. Oceanographe

[Matplotlib-users] Calling to those "embedding" matplotlib in applications

2013-08-12 Thread Michael Droettboom
I'm considering changing the behavior of the rcParam |interactive| (which also can be set through |matplotlib.interactive()| and |pyplot.ion()| and |pyplot.ioff()|). Currently, when setting |interactive| to |True|, running any sort of matplotlib plot as a script will fail to display a window. T