Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

plt to png python

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

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

PREVIOUS NEXT
Code Example
Python :: save plot python 
Python :: how to autosave in python 
Python :: Unable to locate package python-certbot-nginx 
Python :: how to update a module in python 
Python :: python reload function from file 
Python :: how to fillna in all columns with their mean values 
Python :: python delete contents of file 
Python :: python run server 
Python :: create python virtual environment 
Python :: python randomly shuffle rows of pandas dataframe 
Python :: module not found not module name channels in python 
Python :: numpy array to torch tensor 
Python :: ERROR: Failed building wheel for Pillow 
Python :: check if special character in string python 
Python :: install python on ubuntu 
Python :: how to make a star in python turtle 
Python :: iterate over df 
Python :: os.system return value 
Python :: pytorch check if cuda is available 
Python :: install multiprocessing python3 
Python :: numpy install wtih conda 
Python :: display cv2 image in jupyter notebook 
Python :: path sum with python 
Python :: django model plural 
Python :: how to install pandas datareader in conda 
Python :: bee movie script 
Python :: python get human readable file size 
Python :: python app to deb 
Python :: check if string url python 
Python :: how to generate a random number python 
ADD CONTENT
Topic
Content
Source link
Name
7+2 =