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.plot([1, 2], [1, 2])
> plt.savefig('1.png', dpi=100)

plt.close()


> b=plt.plot([1, 2], [2,1])
> plt.savefig('2.png', dpi=100)
>
> In 2.png, a and b are on top of each other
>


------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead. 
Download for free and get started troubleshooting in minutes. 
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to