Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR 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)
Source by matplotlib.org #
 
PREVIOUS NEXT
Tagged: #python #save #figure
ADD COMMENT
Topic
Name
3+4 =