- Matplotlib 2.x By Example
- Allen Yu Claire Chung Aldrin Yim
- 64字
- 2021-07-02 19:34:34
Saving the figure
Now we have drawn our first figure. Let's save our work! Surely we don't want to resort to screen capture. Here is a simple way to do it by calling pyplot.savefig().
If you want to both view the image on screen and save it in file, remember to call pyplot.savefig() before pyplot.show() to make sure you don't save a blank canvas.
推薦閱讀
- 深度實踐OpenStack:基于Python的OpenStack組件開發(fā)
- JavaScript前端開發(fā)模塊化教程
- Java高并發(fā)核心編程(卷1):NIO、Netty、Redis、ZooKeeper
- Learning Docker Networking
- Illustrator CS6設計與應用任務教程
- 網(wǎng)絡數(shù)據(jù)采集技術:Java網(wǎng)絡爬蟲實戰(zhàn)
- OpenCV Android Programming By Example
- PHP項目開發(fā)全程實錄(第4版)
- 你必須知道的.NET(第2版)
- HikariCP數(shù)據(jù)庫連接池實戰(zhàn)
- 高質量程序設計指南:C++/C語言
- OpenStack Networking Cookbook
- VB語言程序設計教程(第2版)
- Mastering VMware Horizon 6
- Yii框架深度剖析