📜  保存图形时python绘图被切断 - Python代码示例

📅  最后修改于: 2022-03-11 14:46:05.187000             🧑  作者: Mango

代码示例1
# Error:
# After saving your plots, parts of the plot (legend, labels, etc) are
# cut off.

# Solution:
# Add bbox_inches='tight'
plt.savefig('my_figure', bbox_inches='tight')