title: How do I add percentage in horizontal bar chart?
body: <p>I have the following code, which creates a horizontal bar chart:</p>
  <pre><code>data = pandas.read_csv('C:/py/matplotlib/02-BarCharts/data.csv')
  responders_id = data['Responder_id']
  langs_worked_with = data['LanguagesWorkedWith']
  
  languages = Counter()
  for reponse in langs_worked_with:
      languages.update(reponse.split(&quot;;&quot;))
  
  langs = []
  langs_users_num = []
  
  for language in languages.most_common(15):
      langs.append(language[0])
      langs_users_num.append(language[1])
  
  langs.reverse()
  langs_users_num.reverse()
  
  plt.barh(langs, langs_users_num)
  plt.tight_layout()
  plt.show()
  </code></pre>
  <p>and after running above code I get this:</p>
  <p><a href="https://i.stack.imgur.com/SMa1E.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/SMa1E.png" alt="enter image description here" /></a></p>
  <p>the data which represents this chart is parsed from stackoverflow and the same chart in stackoverflow looks like below. How do I modify above code to add percentage as shown below.</p>
  <p><a href="https://i.stack.imgur.com/sJz8r.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/sJz8r.png" alt="enter image description here" /></a></p>
  <p>Please help me with this. Thank you</p>