Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python plot cut off when saving

# 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')
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #plot #cut #saving
ADD COMMENT
Topic
Name
8+8 =