1# Basic syntax:
2plt.savefig("output.png")
3
4# Example usage:
5plt.figure()
6plt.plot(range(5))
7plt.savefig("output.png", dpi=300)
8
9# Note, savefig comes from matplotlib.pyplot and plt is an
10# abbreviation for this, e.g. import matplotlib.pyplot as plt
1sns.distplot(df['mpg'])
2plt.savefig('saving-a-high-resolution-seaborn-plot.png', dpi=300)