Answers for "python legend being cut off"

3

python legend being cut off

# 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