title: How to add multiple annotations to a bar plot
body: <p>I would like to add percent values - in addition to counts - to my pandas bar plot. However, I am not able to do so. My code is shown below and thus far I can get count values to display. Can somebody please help me add relative % values next to/below the count values displayed for each bar?</p>
  <pre><code>import matplotlib
  import matplotlib.pyplot as plt
  %matplotlib inline
  plt.style.use('ggplot')
  
  import seaborn as sns
  sns.set_style(&quot;white&quot;)
  
  fig = plt.figure()
  fig.set_figheight(5)
  fig.set_figwidth(10)
  
  ax = fig.add_subplot(111)
  
  counts = [29227, 102492,  53269, 504028, 802994]
  
  y_ax = ('A','B','C','D','E')
  y_tick = np.arange(len(y_ax))
  
  ax.barh(range(len(counts)), counts, align = &quot;center&quot;, color = &quot;tab:blue&quot;)
  ax.set_yticks(y_tick)
  ax.set_yticklabels(y_ax, size = 8)
  
  #annotate bar plot with values
  for i in ax.patches:
      ax.text(i.get_width()+.09, i.get_y()+.3, str(round((i.get_width()), 1)), fontsize=8)
  
  sns.despine()
  plt.show();
  </code></pre>
  <p>The output of my code is shown below. How can one add % values next to each count value displayed?</p>
  <p><a href="https://i.stack.imgur.com/ROjfo.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ROjfo.png" alt="enter image description here" /></a></p>