docstr: metrics: One or more metrics parameters. Each represents the history
      of one metric.
docstr_tok: ["metrics",":","One","or","more","metrics","parameters",".","Each","represents","the","history","of","one","metric","."]
code: def draw_plot(self, metrics, labels=None, ylabel="", title=None):
      """
      metrics: One or more metrics parameters. Each represents the history
          of one metric.
      """
      metrics = metrics if isinstance(metrics, list) else [metrics]
      # Loop through metrics
      default_title = ""
      for i, m in enumerate(metrics):
          label = labels[i] if labels else m.name
          # TODO: use a standard formating function for values
          default_title += (
              "   " if default_title else ""
          ) + "{}: {}".format(label, m.data[-1])
          self.ax.plot(m.formatted_steps, m.data, label=label)
      title = default_title if title is None else title
      self.ax.set_title(title)
      self.ax.set_ylabel(ylabel)
      self.ax.legend()
      self.ax.set_xlabel("Steps")
      self.ax.xaxis.set_major_locator(plt.AutoLocator())
  
imports: import itertools
  import math
  import numpy
  import matplotlib
  import matplotlib.pyplot
  import IPython.display
  from mpl_toolkits.mplot3d import Axes3D
  from matplotlib.collections import PolyCollection
label_desc: Use image node_id 8 for calling the Canvas obj's underlying member method code with example usage: obj.draw_plot(metrics, labels, ylabel, title) without return types