title: How to add error values next to error bars?
body: <p>I'm using matplotlib for my plots. I have with me the plot and errorbar. I want to specify the error value in text next to the errorbars. I'm looking for something like this (edited in pinta):</p>
  
  <p><a href="https://i.stack.imgur.com/SqCgK.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/SqCgK.png" alt="enter image description here"></a></p>
  
  <p>Is this possible to do in this code:</p>
  
  <pre><code>
  import numpy as np
  import matplotlib.pyplot as plt
  import math
  
  N = 8
  
  y1 = [0.1532, 0.1861, 0.2618, 0.0584, 0.1839, 0.2049, 0.009, 0.2077]
  y1err = []
  
  for item in y1:
      err = 1.96*(math.sqrt(item*(1-item)/10000))
      y1err.append(err)
  
  ind = np.arange(N)
  width = 0.35
  
  fig, ax = plt.subplots()
  
  ax.bar(ind, y1, width, yerr=y1err, capsize=7)
  
  ax.grid()
  plt.show()
  
  </code></pre>