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

how to save plot in matplotlib

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

PREVIOUS NEXT
Code Example
Python :: ubuntu install pip for python 3.8 
Python :: python get weather temperature 
Python :: get time between things python 
Python :: scikit learn linear regression 
Python :: python get current time in hours minutes and seconds 
Python :: how to sharpen image in python using cv2 
Python :: write geopands into postgres python 
Python :: How to add card in trello API using python 
Python :: Change the year in 2nd line to get the answer for the year you want. Ex: year=2010 
Python :: add padding to 2d matrix p 
Python :: write specific columns to csv pandas 
Python :: how do you count most frequent item in a list in python 
Python :: python scatterplot 
Python :: adaptive thresholding python 
Python :: messages django 
Python :: pyhton return annonymous object 
Python :: print list vertically in python with loop 
Python :: sort list of string datetimes python 
Python :: numpy stdev 
Python :: install log21 python 
Python :: insert video in tkinter 
Python :: coronavirus program in python 
Python :: update windows wallpaper python 
Python :: tkinter button background color mac 
Python :: append row to array python 
Python :: python every other including first 
Python :: button in flask 
Python :: flask migrate install 
Python :: how to split image dataset into training and test set keras 
Python :: convert string representation of a list to list 
ADD CONTENT
Topic
Content
Source link
Name
9+6 =