📜  python图例被切断 - Python代码示例

📅  最后修改于: 2022-03-11 14:47:14.892000             🧑  作者: 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')