code: def show_values(pc, fmt="%.2f", **kw):
      """
      Heatmap with text in each cell with matplotlib's pyplot
      Source: http://stackoverflow.com/a/25074150/395857
      By HYRY
      """
      pc.update_scalarmappable()
      ax = pc.axes
      for p, color, value in zip(
          pc.get_paths(), pc.get_facecolors(), pc.get_array()
      ):
          x, y = p.vertices[:-2, :].mean(0)
          if np.all(color[:3] > 0.5):
              color = (0.0, 0.0, 0.0)
          else:
              color = (1.0, 1.0, 1.0)
          ax.text(
              x,
              y,
              fmt % value,
              ha="center",
              va="center",
              color=color,
              **kw,
          )
  
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 2 for calling a global function with example usage: show_values(pc, fmt) without return types