title: python - how to get average pixel intensities along a line of an image and plot them on a graph?
body: <p>I have a grayscale image. I want to generate a histogram that corresponds to average pixel intensity of each line along x and y axis.</p>
  
  <p><a href="https://i.stack.imgur.com/QWiTL.png" rel="nofollow noreferrer">for example this image should produce two histograms that look like bell curves</a></p>