Matplotlib保存文件
參數名 | 參數意義 |
---|---|
bbox_inches | 去掉圖片內的空白 |
pad_inches | 去掉圖片和文件邊界的空白 |
# 這個指令可以保存成沒有外邊框,沒有內邊框的圖片格式,也可以是pdf文件。
plt.savefig('merged_images.jpg', bbox_inches='tight', dpi=300, pad_inches=0.0)
包含bbox_inches和pad_inches參數
僅包含bbox_inches參數
僅包含pad_inches參數
所有參數都不包含