File: hexbin_marginals.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 (15 lines) | stat: -rw-r--r-- 323 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
"""
Hexbin plot with marginal distributions
=======================================

_thumb: .45, .4
"""
import numpy as np
import seaborn as sns
sns.set_theme(style="ticks")

rs = np.random.RandomState(11)
x = rs.gamma(2, size=1000)
y = -.5 * x + rs.normal(size=1000)

sns.jointplot(x=x, y=y, kind="hex", color="#4CB391")