Hinweis
Gehe zum Ende, um den vollständigen Beispielcode herunterzuladen.
ecdf(x)#
Berechnet und plottet die empirische kumulative Verteilungsfunktion von x.
Siehe ecdf.

import matplotlib.pyplot as plt
import numpy as np
plt.style.use('_mpl-gallery')
# make data
np.random.seed(1)
x = 4 + np.random.normal(0, 1.5, 200)
# plot:
fig, ax = plt.subplots()
ax.ecdf(x)
plt.show()