Figure_elec.scale_axs

Figure_elec.scale_axs(i_ax=-2, unit_x='ms', unit_y='V', e_gnd=[0], zerox=False, zeroy=False, has_nerve=True)[source]

Harmonize electrode-axis limits and draw scale bars.

Parameters:
  • i_ax (int | tuple[int, int], optional) – Axis indices used to place 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 when computing common y-limits.

  • 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 because it contains the nerve drawing.