官术网_书友最值得收藏!

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.

主站蜘蛛池模板: 永胜县| 大新县| 五台县| 山东省| 东乌珠穆沁旗| 靖边县| 鹤峰县| 平安县| 克山县| 台中县| 红桥区| 中方县| 鱼台县| 徐汇区| 安塞县| 屯昌县| 凭祥市| 安福县| 抚顺县| 汽车| 定结县| 齐齐哈尔市| 彰化市| 沙河市| 临江市| 乐平市| 梁平县| 贡嘎县| 九龙县| 曲沃县| 翁源县| 抚宁县| 温州市| 绵阳市| 惠安县| 义马市| 天祝| 连州市| 蓝山县| 延吉市| 甘南县|