scale_axs
- nrv.eit.utils.scale_axs(axs, i_ax=-2, unit_x='ms', unit_y='V', e_gnd=[0], zerox=False, zeroy=False, has_nerve=True)[source]
Harmonize y-limits across electrode axes and add scale bars.
- Parameters:
axs (list[matplotlib.axes.Axes]) – Axes to update.
i_ax (int | tuple[int, int], optional) – Axis indices used to draw the y and x scale bars.
unit_x (str, optional) – Label appended to the x scale bar.
unit_y (str, optional) – Label appended to the y scale bar.
e_gnd (list[int], optional) – Electrodes excluded from the y-limit aggregation.
zerox (bool, optional) – If
True, draw a horizontal zero line.zeroy (bool, optional) – If
True, draw a vertical zero line.has_nerve (bool, optional) – If
True, ignore the last axis when rescaling.
- Returns:
Updated axes.
- Return type: