File: large_distributions.py

package info (click to toggle)
seaborn 0.11.1-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 5,232 kB
  • sloc: python: 25,600; makefile: 185; javascript: 45; sh: 2
file content (14 lines) | stat: -rw-r--r-- 370 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
"""
Plotting large distributions
============================

"""
import seaborn as sns
sns.set_theme(style="whitegrid")

diamonds = sns.load_dataset("diamonds")
clarity_ranking = ["I1", "SI2", "SI1", "VS2", "VS1", "VVS2", "VVS1", "IF"]

sns.boxenplot(x="clarity", y="carat",
              color="b", order=clarity_ranking,
              scale="linear", data=diamonds)