title: Plot ECDF without loading all data in memory
body: <p>I need to plot the <a href="https://en.wikipedia.org/wiki/Empirical_distribution_function" rel="nofollow noreferrer">ECDF</a> of some data.  I found out I could do it with</p>
  
  <pre><code>ecdf = sm.distributions.ECDF(sample) 
  x = np.linspace(min(sample), max(sample))
  y = ecdf(x)
  plt.step(x, y)
  </code></pre>
  
  <p>using the <code>matplotlib</code> and <code>statsmodels</code> Python packages.</p>
  
  <p>My problem is that the variable <code>sample</code> consists of around 1&nbsp;GB of data, which I can't load into memory all at once.</p>
  
  <p>How can I plot the ECDF while loading data in smaller slices?</p>