Statistics in physt


In [1]:
# Necessary import evil
%matplotlib inline
import physt
import numpy as np
import matplotlib.pyplot as plt

np.random.seed(42)   # Repeatable results

In [2]:
data = np.random.normal(150, 25, 1000000)

In [3]:
h = physt.h1(data)
h.plot(stats_box=True);



In [4]:
h = physt.h1(data, weights=data)
h.plot(stats_box=True);



In [5]:
h = physt.h1(data, range=(120, 140))
h.plot(stats_box=True);