Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

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