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 :: update jupyter notebook 
Python :: web3py convert from wei to ether 
Python :: add sheet to existing workbook openpyxl 
Python :: count nan pandas 
Python :: python convert current datetime to rfc 1123 format 
Python :: python heart code 
Python :: pyautogui keyboard write 
Python :: how to update pandas 
Python :: pd.to_datetime python 
Python :: discord.py dm specific user 
Python :: tkinter canvas remove border 
Python :: python pil resize image 
Python :: pip install torch error 
Python :: set index to column pandas 
Python :: list to csv pandas 
Python :: next prime number in python 
Python :: learn python the hard way pdf 
Python :: pandas Error tokenizing data. 
Python :: install library from python code 
Python :: python read file csv 
Python :: email validation python 
Python :: superscript print python 
Python :: cv2 hconcat 
Python :: dataframe rank groupby 
Python :: how to separate string in python by blank line 
Python :: bar chart with seaborn 
Python :: python exit button 
Python :: how to blit text in pygame 
Python :: python read file without newline 
Python :: find elements by class name selenium python 
ADD CONTENT
Topic
Content
Source link
Name
6+4 =