code: def plot_barh(x, y, xlabel, ylabel, title, graph_path):
      width = 1
      fig, ax = plt.subplots()
      ind = np.arange(len(y))  # the x locations for the groups
      ax.barh(ind, y, color="blue")
      ax.set_yticks(ind + width / 2)
      ax.set_yticklabels(x, minor=False)
      # http://stackoverflow.com/questions/30228069/how-to-display-the-value-of-the-bar-on-each-bar-with-pyplot-barh/30229062#30229062
      for i, v in enumerate(y):
          ax.text(
              v + 3, i + 0.25, str(v), color="blue", fontweight="bold"
          )
      plt.title(title)
      plt.xlabel(xlabel)
      plt.ylabel(ylabel)
      plt.savefig(
          graph_path, dpi=300, format="png", bbox_inches="tight"
      )  # use format='svg' or 'pdf' for vectorial pictures
      plt.clf()
      plt.close()
  
file_path: NeuroNER/neuroner/utils_plots.py
imports: from __future__ import print_function
  from __future__ import division
  import matplotlib
  from matplotlib import cm
  import matplotlib.pyplot
  import numpy
  import sklearn.preprocessing
label_desc: Use image node_id 7 for calling a global function with example usage: plot_barh(x, y, xlabel, ylabel, title, graph_path) without return types