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

Setting the output format

The pyplot.savefig() function takes the path of the output file and automatically outputs it in the specified extension. For example, pyplot.savefig('output.png') will generate a PNG image. If no extension is specified, an SVG image will be generated by default. If the specified format is unsupported, let's say .doc, a ValueError Python exception will be thrown:

主站蜘蛛池模板: 闸北区| 冕宁县| 德清县| 延安市| 阿克| 灵石县| 台安县| 正安县| 山西省| 饶阳县| 灵山县| 昭平县| 桂阳县| 八宿县| 云龙县| 康马县| 万载县| 安福县| 乾安县| 萝北县| 阿拉善右旗| 江西省| 应城市| 无棣县| 安庆市| 莱西市| 台江县| 稷山县| 上栗县| 武胜县| 西青区| 雷州市| 定西市| 永安市| 固原市| 凌海市| 扶余县| 富裕县| 桐乡市| 梁山县| 盘锦市|