Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python save seaborn plot

# Basic syntax:
plt.savefig("output.png")

# Example usage:
plt.figure()
plt.plot(range(5))
plt.savefig("output.png", dpi=300)

# Note, savefig comes from matplotlib.pyplot and plt is an 
# 	abbreviation for this, e.g. import matplotlib.pyplot as plt
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #save #seaborn #plot
ADD COMMENT
Topic
Name
4+5 =