【发布时间】:2013-06-11 04:03:29
【问题描述】:
我想获得 4 x 3 英寸大小的 fig1,并以 tiff 格式更正以下程序:
import matplotlib.pyplot as plt
list1 = [3,4,5,6,9,12]
list2 = [8,12,14,15,17,20]
plt.plot(list1, list2)
plt.savefig('fig1.png', dpi = 300)
plt.close()
【问题讨论】:
-
将文件名中的扩展名从 .png 更改为 .tif 会创建真正的 tiff 图像吗?
标签: python python-2.7 python-3.x matplotlib