eelbrain.plot.SensorMaps

class eelbrain.plot.SensorMaps(sensors, select=[], proj='default', size=1, color='k', marker='.', frame=0.05, **kwargs)

Multiple views on a sensor layout.

Allows selecting sensor groups and retrieving corresponding indices.

Parameters:
  • sensors (Sensor | NDVar) – The Sensor dimension, or an NDVar with a sensor dimension.

  • select (list of int) – Initial selection.

  • proj (str) – Sensor projection for the fourth plot.

  • size (scalar) – Size for the sensor markers.

  • color (matplotlib color) – Color for the sensor markers.

  • marker (str) – Marker for the sensor positions.

  • frame (scalar) – Size of the empty space around sensors in axes.

  • ... – Also accepts General layout parameters.

Notes

Selecting Sensor Groups:

  • Dragging with the left mouse button adds sensors to the selection.

  • Dragging with the right mouse button removes sensors from the current selection.

  • The ‘Clear’ button (or clear()) clears the selection.

Methods

add_hline(y[, axes])

Draw a horizontal line on one or more axes

add_hspan(bottom, top[, axes])

Draw a horizontal bar on one or more axes

add_vline(x[, axes])

Draw a vertical line on one or more axes

add_vspan(xmin, xmax[, axes])

Draw a vertical bar on one or more axes

clear()

Clear the current sensor selection.

close()

Close the figure.

draw()

(Re-)draw the figure (after making manual changes).

draw_crosshairs([enable])

Draw crosshairs under the cursor

draw_outline([color])

Draw the outline of the figure

get_selection()

Retrieve the current selection

image([name, format, close])

Create FMTXT Image from the figure

save(*args, **kwargs)

Short-cut for Matplotlib's savefig()

set_name(name)

Set the figure window title

set_selection(select)

Set the current selection with a list of indices.

set_xlabel(label[, ax])

Set the label for the x-axis

set_xtick_rotation(rotation)

Rotate every x-axis tick-label by an angle (counterclockwise, in degrees)

set_ylabel(label[, ax])

Set the label for the y-axis