pyntbci.plotting.topoplot

pyntbci.plotting.topoplot(z: ndarray[Any, dtype[_ScalarType_co]], locfile: str, cbar: bool = False, ax: Axes | None = None, iso: bool = False, chan: bool = True) None[source]

Plot a topoplot. The values at each electrode are interpolated on an outline of a head using an electrode position file (loc file).

Parameters:
  • z (NDArray) – A vector of electrode values, e.g. a spatial filter/patterns.

  • locfile (str) – A .loc file with electrode position information.

  • cbar (bool (default: False)) – Whether to add a colorbar.

  • ax (Axes (default: None)) – Axes to plot in. A new one is made when None.

  • iso (bool (default: False)) – Whether to add iso lines.

  • chan (bool (default: True)) – Whether to plot the channel positions.