title: ValueError: max must be larger than min in range parameter
body: <p>I have a numpy array "delta" as below. </p>
  
  <pre><code>delta
  Out[28]: 
  array([2.73324807, 2.70019904, 3.76618225, ...,        nan, 1.93536938,
         4.24551458])
  </code></pre>
  
  <p>I'm trying to plot a histogram for it using the bin and normed parameter as below.</p>
  
  <pre><code>plt.hist(delta, bins = 10, normed=True)
  </code></pre>
  
  <p>This gives me the error as :</p>
  
  <pre><code>/Users/tcssig/anaconda/lib/python3.5/site-packages/numpy/lib/histograms.py in _get_outer_edges(a, range)
      302         if first_edge &gt; last_edge:
      303             raise ValueError(
  --&gt; 304                 'max must be larger than min in range parameter.')
      305         if not (np.isfinite(first_edge) and np.isfinite(last_edge)):
      306             raise ValueError(
  
  ValueError: max must be larger than min in range parameter.
  </code></pre>