Is there a way to plot the CDF + cumulative histogram of a Pandas Series in Python using Seaborn only? I have the following:
import numpy as np
import pandas
import numpy as np
import seaborn as sns
x = np.random.randn(200)
kwargs = {'cumulative': True}
sns.distplot(x, hist_kws=kwargs, kde_kws=kwargs)
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)