Skip to content

Instantly share code, notes, and snippets.

@cereniyim
Last active October 15, 2019 14:32
Show Gist options
  • Save cereniyim/3e6ffa5f3413689747b2aaba98ef8e3b to your computer and use it in GitHub Desktop.
Save cereniyim/3e6ffa5f3413689747b2aaba98ef8e3b to your computer and use it in GitHub Desktop.
Violinplot with Scale
# set the plot with different scale parameter and title
sns.violinplot(x="continent", y="life_expectancy", data=df,
palette="Set3",
order=["Africa", "Asia", "Americas", "Europe", "Oceania"],
inner=None,
scale="count")
plt.title("Violinplot of Life Expectancy Among Continents Between 1952 and 2007")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment