0
我使用保存图来保存我的图,但它保存了像棋盘那样的小黑色和白色方块的情节。Savefig保存图像,像棋盘一样的黑色和白色方块
plt.ion()
plt.show()
plt.figure('Amplitude Evolution')
plt.axis([0, 100, -2, 2])
plt.scatter(tot, Amp[0,tot])
print Amp[0,tot]
plt.draw()
plt.legend(bbox_to_anchor=(1, 1), loc=1, borderaxespad=0.)
plt.title('Amplitude Evolution')
plt.xlabel('Time[s]',fontsize=25)
plt.ylabel('Amplitude',fontsize=25)
plt.savefig("res.png", transparent = True, pad_inches=0)
是因为分散和实时更新的情节?
plt.savefig()#先做。 plt.show()#然后看看你是否想要。 – Hun
不,它没有改变任何东西 – Soyol