title: How to find envelope (continuous function) of histogram in python
body: <p>I have a histogram from measured data and I want to find an envelope (a continuous function) of this histogram. What do you suggest? How to do it in python? </p>
  
  <pre><code>plot_histogram_of_real_data(file_name='/home/me/data.txt'):
          plt.figure('Histogram of real data')
          data = load_measured_data(file_name)
          n, bins, patches = plt.hist(data, 30, facecolor='green', alpha=0.75)
          plt.grid()
          plt.show()
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/0o2wi.png" alt="Histogram picture"></p>