Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

python save figure

# Basic syntax:
plt.savefig("/path/to/output/directory/figure.png")

# Example usage:
import matplotlib.pyplot as plt
plt.figure()
plt.plot(range(5))
plt.savefig("~/Documents/figure.png", dpi=300)
Comment

save matplotlib figure

plt.savefig('image.png')
Comment

PREVIOUS NEXT
Code Example
Python :: flask code 
Python :: get text from txt file python 
Python :: delete rows based on condition python 
Python :: how to install dask in python 
Python :: copy whole directory python 
Python :: python get output of command to variable 
Python :: hibernate windows with python 
Python :: check 32 or 64 bit python 
Python :: sort by two columns in pandas 
Python :: record the amount of time ittales for code to run python 
Python :: python - prime number generator 
Python :: save plot python 
Python :: python reimport module 
Python :: save clipboard data win32clipboard python 
Python :: pyspark date to week number 
Python :: python regex flags 
Python :: hide root window tkinter 
Python :: ERROR: Failed building wheel for Pillow 
Python :: Presskeys in python 
Python :: pytorch check gpu 
Python :: python regex count matches 
Python :: numpy find rows containing nan 
Python :: dataframe get list of index vlaues 
Python :: matplotlib get rid of gridlines 
Python :: display python 001 
Python :: how to check for a particular word in a text file using python 
Python :: python initialize multidimensional list 
Python :: how to install pandas datareader in conda 
Python :: HOw to use passlock password manager python 
Python :: django makemigrations comand 
ADD CONTENT
Topic
Content
Source link
Name
2+7 =