code: def prepare_topoplots(topo, values):
      
      values = np.atleast_2d(values)
  
      topomaps = []
  
      for i in range(values.shape[0]):
          topo.set_values(values[i, :])
          topo.create_map()
          topomaps.append(topo.get_map())
  
      return topomaps
docs: Prepare multiple topo maps for cached plotting.
  
      .. note:: Parameter `topo` is modified by the function by calling :func:`~eegtopo.topoplot.Topoplot.set_values`.
  
      Parameters
      ----------
      topo : :class:`~eegtopo.topoplot.Topoplot`
          Scalp maps are created with this class
      values : array, shape = [n_topos, n_channels]
          Channel values for each topo plot
  
      Returns
      -------
      topomaps : list of array
          The map for each topo plot