Matplotlib and seaborn 3 · Chart types

Histogram

Show the distribution of a numeric variable in 30 bins.

data = np.random.default_rng(1).normal(size=1000)
plt.hist(data, bins=30, edgecolor="white")

Official Matplotlib and seaborn 3 documentation

More chart types commands

All chart types commands · Matplotlib and seaborn 3 cheatsheet

Was this page helpful?