title: How to show label into barh plot?
body: <p>I would like to label my bars from the <code>barh</code>-plot. Therefore I have created a text <code>numpy.array=Maintenance_component</code>, which I want to display next to each bar. Unfortunately I did not find a quick solution. The desired result should be as follows. <a href="https://i.stack.imgur.com/XaeBJ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/XaeBJ.png" alt="expected output"></a></p>
  
  <pre><code># ___________________________________________________________________________
  # Library 
  import matplotlib.pyplot as plt
  from matplotlib.backends.backend_tkagg import FigureCanvasTkAgg, NavigationToolbar2Tk 
  import tkinter as tk
  import numpy as np
  # ___________________________________________________________________________
  # Maintenance Array
  Maintenance_km = np.array([30,400,400,1700,1850,1600])
  Maintenance_cost = np.array([500,500,1000,2000,2040, 1800])
  Maintenance_component = np.array(['engine','spoiler','diffusor','radio','window','fueltank'])
  # ___________________________________________________________________________
  # Main
  Vis = tk.Tk()
  Vis.title("Main") # titel
  # ___________________________________________________________________________
  # Plot
  fig, ax = plt.subplots(1, 1, figsize=(20,5), facecolor = "white")
  
  Plot_Maintenace_cost2 = plt.barh(range(len(Maintenance_km)),   Maintenance_km-Maintenance_cost+500, 
                      left=Maintenance_km,
                      height=0.9,
                      color='#C5E0B4')
  
  ax.spines["bottom"].set_position("zero")
  ax.spines["top"].set_color("none")
  ax.spines["right"].set_color("none")
  ax.spines["left"].set_color("none")
  ax.tick_params(axis="x", length=20)
  
  _, xmax = ax.get_xlim()
  ymin, ymax = ax.get_ylim()
  ax.set_xlim(-15, xmax)
  ax.set_ylim(ymin, ymax+10) # legend
  ax.text(xmax, -5, "km", ha="right", va="top", size=14)
  plt.legend(ncol=5, loc="upper left")
  plt.tight_layout() 
  
  # ___________________________________________________________________________
  # Canvas, Toolbar
  canvas = FigureCanvasTkAgg(fig, master=Vis)
  canvas.draw() # TK-Drawingarea
  canvas.get_tk_widget().pack(side=tk.TOP, fill=tk.BOTH, expand=True)
  canvas._tkcanvas.pack(side = tk.TOP, fill = tk.BOTH, expand = True)
  
  toolbar = NavigationToolbar2Tk(canvas, Vis)
  toolbar.update()
  
  Vis.mainloop()
  </code></pre>