title: Convert Histogram to curve in Python
body: <p>I have this code </p>
  
  <pre><code>df1 = df['T1'].values
  
  df1 = df1 [~np.isnan(df1 )].tolist()
  
  plt.hist(df1 , bins='auto', range=(0,100))
  plt.show()
  </code></pre>
  
  <p>Which gives me this graph</p>
  
  <p><a href="https://i.stack.imgur.com/OYuRa.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/OYuRa.png" alt="enter image description here"></a></p>
  
  <p>and this code</p>
  
  <pre><code>df2 = df['T2'].values
  
  df2 = df2 [~np.isnan(df2 )].tolist()
  
  plt.hist(df2 , bins='auto', range=(0,100))
  plt.show()
  </code></pre>
  
  <p>which gives me this</p>
  
  <p><a href="https://i.stack.imgur.com/e8pIx.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/e8pIx.png" alt="enter image description here"></a></p>
  
  <p>Is there any way I can convert Histograms to Curves and then combine them together?</p>
  
  <p>Something like this</p>
  
  <p><a href="https://i.stack.imgur.com/VoCU9.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/VoCU9.png" alt="enter image description here"></a></p>