python sns save plot code example
Example 1: how to save a png seaborn pandas
sns.distplot(df['mpg'])
plt.savefig('saving-a-high-resolution-seaborn-plot.png', dpi=300)
Example 2: save a seaborn heatmap
swarm_plot = sns.swarmplot(...)
fig = swarm_plot.get_figure()
fig.savefig(...)