slider#

slider(handler, horiz, vert=False, horizmag=1.0, vertmag=1.0, allowsup=True)#

Add horizontal and/or vertical viewport controls to a figure.

The figure’s existing axes are magnified using the same normalized-position transformation as EEGLAB. Moving a control pans those axes; the x button restores their exact original positions and removes the controls.

Parameters:
  • handler (Figure) – Figure whose axes should be magnified and panned.

  • horiz (bool | int) – Whether to add a horizontal slider.

  • vert (bool | int) – Whether to add a vertical slider.

  • horizmag (float) – Horizontal magnification, at least one.

  • vertmag (float) – Vertical magnification, at least one.

  • allowsup (bool | int) – Whether the dismiss button is active.

Returns:

Handles for programmatic control and removal.

Return type:

SliderControls