eegprep.cart2topo#

eegprep.cart2topo(x, *args)#

Convert XYZ Cartesian coordinates to polar topoplot coordinates.

This follows current EEGLAB cart2topo.m behavior: Cartesian coordinates are converted to MATLAB-style spherical coordinates, then to topoplot theta and radius via sph2topo method 2.

Parameters:
  • x (Any) – Either an (n, 3) array of X, Y, Z coordinates or a vector of X coordinates when Y and Z are supplied as separate arguments.

  • *args (Any) – Either (y, z) vectors. Additional EEGLAB legacy options are deprecated and are not supported.

Returns:

(theta, radius, x, y, z) arrays.

Return type:

tuple