Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

save plot python

from matplotlib import pyplot as plt
# As png
plt.savefig('Path/FigureName.png')

# As pdf
plt.savefig('Path/FigureName.pdf')
Comment

how to save plot in python

In [5]: plt.savefig('books_read.png')
Comment

save plot in python

plt.savefig('books_read.png')
Comment

python save plot

from matplotlib import pyplot as plt

plt.savefig('foo.png')
plt.savefig('foo.pdf')
Comment

how to save plot in matplotlib

Copied to clipboard
plt.savefig('plot.png', dpi=300, bbox_inches='tight')
Comment

save python plot

plt.savefig('your_path/a/b/'+str(yname)+'_'+str(xname)+'_'+str(dimername), bbox_inches='tight', dpi=300 )
																		^this is your name abc_AC (varibales)				^ crop edges			
Comment

PREVIOUS NEXT
Code Example
Python :: ind vs wi 
Python :: axis number size matplotlib 
Python :: python log with timestamp 
Python :: python reload file if changed 
Python :: python how to write pandas dataframe as tsv file 
Python :: pandas loop through rows 
Python :: how to install mediapipe python 
Python :: pandas read_csv ignore first column 
Python :: how to clear console python 
Python :: linux python installation wheel 
Python :: python readlines without n 
Python :: python calculate time taken 
Python :: how to remove integer from string in python 
Python :: DeprecationWarning: executable_path has been deprecated, please pass in a Service object 
Python :: make string numeric pandas 
Python :: django flush database 
Python :: add conda env to jupyter 
Python :: inverse matrix python 
Python :: blank lines with csv.writer 
Python :: python play sound 
Python :: pandas add dataframe to the bottom of another 
Python :: matplotlib plot title font size 
Python :: python - convert index to a column 
Python :: pygame how to make a transparent surface 
Python :: how to find the mode using pandas groupby 
Python :: array of random integers python 
Python :: run django app locally 
Python :: python how to set the axis ranges in seaborn 
Python :: ban discord.py 
Python :: random gen in python 
ADD CONTENT
Topic
Content
Source link
Name
2+1 =