add_nerve_plot
- nrv.eit.utils.add_nerve_plot(axs, data, add_elec=True, drive_pair=(0, 2), e_label=True, n_lwidth=2, e_lwidth=3, alpha_lab=1.2, **kwgs)[source]
Draw a nerve cross-section and optionally the electrode geometry.
- Parameters:
axs (list[matplotlib.axes.Axes]) – Axes list whose last axis is used for the nerve drawing.
data (Any) – Object or path loadable with
load_any().add_elec (bool, optional) – If
True, overlay cuff electrodes.drive_pair (tuple[int, int], optional) – Electrode pair highlighted as the current-driving pair.
e_label (bool, optional) – If
True, display electrode labels.n_lwidth (float, optional) – Line width of the nerve drawing.
e_lwidth (float, optional) – Line width of the electrode drawing.
alpha_lab (float, optional) – Alpha factor used for electrode labels.
**kwgs (dict) – Additional keyword arguments reserved for future use.
- Returns:
Updated axes.
- Return type: