考虑以下简单代码:import matplotlib.pyplot as plt
f = np.sin在关闭图形窗口后保存这个图形。当然,这不是很有用,但是在最初的代码中,我想以图形的方式操作这个图形,然后保存更改。
以上代码在我的上一个Python版本(版本2)中运行得很好。,但是由于我用Python3.4更改为SuSe 13.2,所
我在linux shell上使用python,并试图保存绘图而不是显示(显示绘图窗口会导致错误)。我看了看问题Save plot to image file instead of displaying it using Matplotlib,但没有帮助。下面是我的代码: import matplotlib.pyplot as plt# list3 is list of dataplt.xlabel('X')
plt.ylabel('Y&