Figure_elec

class nrv.eit.utils.Figure_elec(n_e, fig=None, spec=None, ij_offset=(0, 0), small_fig=False, **fig_kwgs)[source]

Helper class organizing one subplot per electrode around a central nerve view.

Attributes

Figure_elec.axs

Axes composing the figure layout.

Figure_elec.fig

Underlying Matplotlib figure.

Methods

Figure_elec.__init__(n_e[, fig, spec, ...])

Create an electrode-centered figure layout.

Figure_elec.add_nerve_plot(data[, add_elec, ...])

Draw the nerve cross-section and optionally the cuff electrodes in the center axis.

Figure_elec.boxplot(data[, expr])

Draw one seaborn boxplot per electrode from a dataframe.

Figure_elec.color_elec(data, n_e, list_e, **kwgs)

Highlight a subset of electrodes on the central nerve axis.

Figure_elec.fill_between_all_elec(data_1, data_2)

Fill the area between two signals for each electrode axis.

Figure_elec.plot_all_elec(data[, t, i_res, ...])

Plot one signal trace per electrode on the managed figure.

Figure_elec.scale_axs([i_ax, unit_x, ...])

Harmonize electrode-axis limits and draw scale bars.

Figure_elec.snsplot([type, expr])

Placeholder for seaborn-based electrode plotting from dataframe inputs.