code: def plot(data: Dict[str, np.array], fields: List[str] = None, *args, **kwargs):
      
      if plt is None:
          return
  
      if fields is None:
          fields = ['x', 'y', 'm', 'c']
      labels = []
      lines = []
      for field in fields:
          if min(data[field].shape) > 0:
              f_lines = plt.plot(data['t'], data[field], *args, **kwargs)
              lines.extend(f_lines)
              labels.extend(data['labels'][field])
      plt.legend(lines, labels, ncol=2, loc='best')
      plt.xlabel('t, sec')
      plt.grid()
docs: Plot simulation data.
      :data: A dictionary of arrays.
      :fields: A list of variables you want to plot (e.g. ['x', y', 'c'])