eelbrain.Sensor.get_locs_2d

Sensor.get_locs_2d(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 (float) – coordinates will be scaled with minimum value 0 and maximum value defined by the value of extent.

  • frame (float) – 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 – Sensor position 2d projection in x, y coordinates.

Return type:

array (n_sensor, 2)