code: def plot_hist(sequence, xlabel, ylabel, title, graph_path):
      xmin = min(sequence)
      xmax = max(sequence)
      step = 1
      y, x = np.histogram(
          sequence,
          bins=np.linspace(xmin, xmax, (xmax - xmin + 1) / step),
      )
  
      plt.bar(x[:-1], y, width=x[1] - x[0], color="red", alpha=0.5)
      plt.grid(True)
      plt.xlabel(xlabel, fontsize=8)
      plt.title(title, fontsize=12)
      plt.ylabel(ylabel, fontsize=8)
      plt.savefig(
          graph_path, dpi=300, format="png", bbox_inches="tight"
      )
      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 6 for calling a global function with example usage: plot_hist(sequence, xlabel, ylabel, title, graph_path) without return types