|
From: Eric F. <ef...@ha...> - 2013-08-13 06:50:19
|
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
>
|