title: Calculate the area under each peak in a graph in python
body: <p>I am trying to calculate the area under each peak in a graph that I plotted with a set of x and y co-ordinates, </p>
  
  <p>I don't have a function for (x,y), and so I haven't been able to find an appropriate method to do the same.</p>
  
  <p>the co-ordinates are </p>
  
  <pre><code>{
   [10 10]
   [11  1]
   [12  7]
   [14  4]
   [16  8]
   [17  5]]}
  </code></pre>
  
  <p>And <code>y=0</code> for all the unmarked x values</p>
  
  <p><img src="https://i.stack.imgur.com/nunnu.png" alt="The graph plotted with the (x,y) co-ordinates"></p>