Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Violin Plots in Seaborn

import seaborn as sns
import matplotlib.pyplot as plt
%matplotlib inline

sns.violinplot(x="day", y="total_bill", data=tips,palette='rainbow') 
# standard violin plot

sns.violinplot(x="day", y="total_bill", data=tips,hue='sex',palette='Set1') 
# violin plots showing simultaneous violin plots side-by-side for sex categories

plt.show()
Source by github.com #
 
PREVIOUS NEXT
Tagged: #Violin #Plots #Seaborn
ADD COMMENT
Topic
Name
4+7 =