Answers for "python plot cut off when saving figure"

3

python plot cut off when saving figure

# 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')
Posted by: Guest on September-09-2020

Python Answers by Framework

Browse Popular Code Answers by Language