Plot CDF + cumulative histogram using Seaborn Python
<p>Is there a way to plot the CDF + cumulative histogram of a Pandas Series in Python using Seaborn only? I have the following:</p>

<pre><code>import numpy as np
import pandas as pd
import seaborn as sns
s = pd.Series(np.random.normal(size=1000))
</code></pre>

<p>I know I can plot the cumulative histogram with <code>s.hist(cumulative=True, normed=1)</code>, and I know I can then plot the CDF using <code>sns.kdeplot(s, cumulative=True)</code>, but I want something that can do both in Seaborn, just like when plotting a distribution with <code>sns.distplot(s)</code>, which gives both the kde fit and the histogram. Is there a way? I wonder why they didn't implement something like <code>sns.distplot(cumulative=True)</code>. Otherwise, how can I make the color themes to match? Where do I find the default colors used for <code>sns.distplot()</code>? </p>

<pre><code>import numpy as np
import seaborn as sns

x = np.random.randn(200)
sns.distplot(x,
             hist_kws=dict(cumulative=True),
             kde_kws=dict(cumulative=True))
</code></pre>

<p><a href="http://i.stack.imgur.com/eBDry.png" rel="nofollow"><img src="http://i.stack.imgur.com/eBDry.png" alt="enter image description here"></a></p>

python pandas seaborn