eelbrain.Sensor.get_locs_2d

Sensor.get_locs_2d(self, proj='default', extent=1, frame=0, invisible=True)

Compute a 2 dimensional projection of the sensor locations

Parameters:
proj : str

How to transform 3d coordinates into a 2d map; see class documentation for options.

extent : int

coordinates will be scaled with minimum value 0 and maximum value defined by the value of extent.

frame : scalar

Distance of the outermost points from 0 and extent (default 0).

invisible : bool

Return invisible sensors (sensors that would be hidden behind the head; default True).

Returns:
locs_2d : array (n_sensor, 2)

Sensor position 2d projection in x, y coordinates.