In [1]:
import seaborn as sns
import matplotlib.pyplot as plt
#sns.set(style="whitegrid", palette="pastel")
sns.set(style="whitegrid", palette="pastel", color_codes=True)
%matplotlib inline
In [ ]:
seaborn.violinplot(x=None, y=None, hue=None, data=None, order=None,
hue_order=None, bw='scott', cut=2, scale='area',
scale_hue=True, gridsize=100, width=0.8, inner='box',
split=False, orient=None, linewidth=None, color=None,
palette=None, saturation=0.75, ax=None, **kwargs)
In [3]:
# Load the example tips dataset
tips = sns.load_dataset("tips")
print tips
#print tips.total_bill
# Draw a nested violinplot and split the violins for easier comparison
sns.violinplot(x="day", y="total_bill", hue="sex", data=tips, split=True,
inner="quart", palette={"Male": "g", "Female": "y"})
sns.despine(left=True)
plt.ylabel('Total bill')
plt.xlabel('Day')
plt.show()