Title: Violin plot with python, matplotlib and seaborn Date: 2017-10-19 10:42 Modified: 2017-10-19 10:42 Slug: violin-plot-with-python-matplotlib-seaborn
In [15]:
import pandas as pd
import seaborn as sns
import matplotlib.pyplot as plt
In [16]:
%matplotlib inline
In [17]:
df = pd.read_csv('LAB_3_large_data_set_cleaned.csv')
In [18]:
ax = sns.violinplot(data=df, palette="pastel")
plt.show()
In [19]:
fig = ax.get_figure()
fig.savefig('sns_violin_plot.png', dpi=300)
In [20]:
import pandas as pd
import seaborn as sns
import matplotlib.pyplot as plt
%matplotlib inline
df = pd.read_csv('LAB_3_large_data_set_cleaned.csv')
ax = sns.violinplot(data=df, palette="pastel")
plt.show()
fig = ax.get_figure()
fig.savefig('sns_violin_plot.png', dpi=300)