170622 Save plot to image file instead of displaying it using Matplotlib
来源:互联网 发布:网络连接中断请联系isp 编辑:程序博客网 时间:2024/06/05 18:31
Issue description
Answer as following
Code
import matplotlib.pyplot as pltimport numpy as npimport matplotlib.cm as cmfor i in range(10): data = np.random.randint(1,99,(10,10)) plt.ioff() # prevent showing the picture plt.matshow(data,cmap=cm.RdYlGn) # plot the picture plt.savefig('rms_map//'+str(i)+'.png')
Color Example
https://matplotlib.org/examples/color/colormaps_reference.html
Gitbook Resource
https://www.gitbook.com/@wizardforcel
阅读全文
0 0
- 170622 Save plot to image file instead of displaying it using Matplotlib
- Examples of Python Matplotlib to plot bar
- 如何解决It's likely you're attempting to run Eclipse using the JRE instead of the JDK
- sublime can not convert file encoding of xx to GBK,it was saved as UTF-8 instead:unkown encoding:GBK
- using ntsd or cdb instead of drwtsn32 to generate a
- how to change a symbolic link instead of deleting it?
- fromelf converts axf to bin directory instead of bin file
- save file as byte array to DB using jdbctemplate
- 【vim】save part of file to a seperate new file
- Save Image to UserDefaults
- Using SingleTagSectionHandler Instead Of appSettings
- BLToolKit save null instead of 0
- Java JDBC - How to connect to Oracle using Service Name instead of SID
- Practice of using spinlock instead of mutex
- How to resize a *.jpg image and save the result to a file
- ios save image to album
- Image is not displaying proper using OpenGL in android ndk
- Going to buffer response body of large or unknown size. Using getResponseBodyAsStream instead is rec
- Linux下安装JDK
- 大数运算之加法和乘法算法C++模板
- 第一部分 6大设计原则
- 1.锋利的jquery之选择器大全
- 国际学校怎么选?国际课程有哪些?国际学校如何申请学位?
- 170622 Save plot to image file instead of displaying it using Matplotlib
- org.springframework.beans.factory.BeanDefinitionStoreException
- Linux 命令行创建以及展示 Mdp 演示稿图文教程
- mybatis学习之多表关联查询和resultmap的常用标签和属性 和分页查询
- 数组---二维数组
- 迅雷,电驴通过利用URL Protocol实现网页调用本地应用程序
- vmware安装ubuntu的大致注意事项
- jquery.webcam.js实现调用摄像头拍照兼容各个浏览器
- js中传参的实例 多组图片的指定切换与商品价格的计算