title: Adding labels from another variable to a single bar in a barchart
body: <p>I am trying to add a string variable to my graph but i don't know how to have it inside the bar.
  My string variable is called city.</p>
  
  <pre><code>ax.barh(df['date'].values, df['cases'].values, color= '#49cff3')
  ax.text(0, 1.06, 'Number of Cases', transform=ax.transAxes, size=12, color='#777777')
  ax.xaxis.set_major_formatter(ticker.StrMethodFormatter('{x:,.0f}'))
  ax.xaxis.set_ticks_position('top')
  ax.tick_params(axis='x', colors='#777777', labelsize=12)
  ax.set_yticks([])
  ax.grid(which='major', axis='x', linestyle='-')
  ax.set_axisbelow(True)
  ax.text(0, 1.15, 'Total Number of cases',
          transform=ax.transAxes, size=24, weight=600, ha='left', va='top')
  plt.yticks()
  plt.box(False)
  </code></pre>
  
  <p>here is my output </p>
  
  <p><a href="https://i.stack.imgur.com/4q82K.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/4q82K.png" alt="enter image description here"></a></p>
  
  <p>Many thanks in advance</p>
  
  <p>edit: i tried adding  @JohanC 's solution and got the following output:
  <a href="https://i.stack.imgur.com/nNF5c.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/nNF5c.png" alt="enter image description here"></a> </p>