File: three_variable_histogram.py

package info (click to toggle)
seaborn 0.13.2-6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 6,920 kB
  • sloc: python: 37,249; makefile: 182; javascript: 45; sh: 15
file content (15 lines) | stat: -rw-r--r-- 355 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
"""
Trivariate histogram with two categorical variables
===================================================

_thumb: .32, .55

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

diamonds = sns.load_dataset("diamonds")
sns.displot(
    data=diamonds, x="price", y="color", col="clarity",
    log_scale=(True, False), col_wrap=4, height=4, aspect=.7,
)