color_elec

nrv.eit.utils.color_elec(axs, data, n_e, list_e, **kwgs)[source]

Highlight selected cuff electrodes on the nerve plot.

Parameters:
  • axs (list[matplotlib.axes.Axes]) – Axes list whose last axis contains the nerve drawing.

  • data (Any) – Object or path loadable with load_any().

  • n_e (int) – Total number of electrodes.

  • list_e (int | list[int]) – Electrode identifier or identifiers to highlight.

  • **kwgs (dict) – Additional keyword arguments forwarded to the electrode plotter.

Returns:

Updated axes.

Return type:

list[matplotlib.axes.Axes]