Plot CDF + cumulative histogram using Seaborn Python Plot CDF + cumulative histogram using Seaborn Python pandas pandas

Plot CDF + cumulative histogram using Seaborn Python


import numpy as npimport seaborn as snsx = np.random.randn(200)kwargs = {'cumulative': True}sns.distplot(x, hist_kws=kwargs, kde_kws=kwargs)

enter image description here


You can get almost the same plot using matplotlib by using cumulative=True and density=True.

plt.hist(x,cumulative=True, density=True, bins=30)