Answers for "sns save plot"

3

python how to save a Seaborn plot into a file

# 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
Posted by: Guest on August-11-2020
1

how to save a png seaborn pandas

sns.distplot(df['mpg'])
plt.savefig('saving-a-high-resolution-seaborn-plot.png', dpi=300)
Posted by: Guest on June-22-2020
0

sns save chart

sns.distplot(df['mpg'])

# Saving the Seaborn Figure:
plt.savefig('save_as_a_png.png')Code language: Python (python)
Posted by: Guest on November-04-2021

Python Answers by Framework

Browse Popular Code Answers by Language