- Matplotlib 2.x By Example
- Allen Yu Claire Chung Aldrin Yim
- 60字
- 2021-07-02 19:34:34
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:

推薦閱讀
- Mastering Visual Studio 2017
- Kibana Essentials
- Rust編程:入門、實(shí)戰(zhàn)與進(jìn)階
- C語言程序設(shè)計(jì)(第2版)
- Learning Salesforce Einstein
- 運(yùn)用后端技術(shù)處理業(yè)務(wù)邏輯(藍(lán)橋杯軟件大賽培訓(xùn)教材-Java方向)
- Java Web開發(fā)詳解
- C/C++數(shù)據(jù)結(jié)構(gòu)與算法速學(xué)速用大辭典
- 零代碼實(shí)戰(zhàn):企業(yè)級(jí)應(yīng)用搭建與案例詳解
- Visual Basic程序設(shè)計(jì)實(shí)驗(yàn)指導(dǎo)及考試指南
- Shopify Application Development
- Selenium WebDriver Practical Guide
- C語言程序設(shè)計(jì)教程
- 網(wǎng)絡(luò)綜合布線與組網(wǎng)實(shí)戰(zhàn)指南
- Kohana 3.0 Beginner's Guide