写一段python保存matplotlib图片的示例

示例代码: import matplotlib.pyplot as plt

创建图片

plt.plot([1,2,3,4])

保存图片

plt.savefig('my_picture.png')

猜你喜欢

转载自blog.csdn.net/weixin_35754962/article/details/129607429
今日推荐