code: def cdf(data,mode='continuous',**kwargs):
    '''
  Return cumulative density.
  
  :arguments:
  
    **data** (``<numpy.ndarray>``)
      Input data, to plot the distribution for.
  
  :returns:
  
    **P** (``<numpy.ndarray>``)
      Cumulative probability.
  
    **x** (``<numpy.ndarray>``)
      Data points.
    '''
  
    return ( np.linspace(0.0,1.0,len(data)), np.sort(data) f cdf(data,mode='continuous',**kwargs):
    '''
  Return cumulative density.
  
  :arguments:
  
    **data** (``<numpy.ndarray>``)
      Input data, to plot the distribution for.
  
  :returns:
  
    **P** (``<numpy.ndarray>``)
      Cumulative probability.
  
    **x** (``<numpy.ndarray>``)
      Data points.
    '''
  
    return ( np.linspace(0.0,1.0,len(data)), np.sort(data) )
docs: Return cumulative density.
  
  :arguments:
  
    **data** (``<numpy.ndarray>``)
      Input data, to plot the distribution for.
  
  :returns:
  
    **P** (``<numpy.ndarray>``)
      Cumulative probability.
  
    **x** (``<numpy.ndarray>``)
      Data points.