__init__

SelectorButtons.__init__(f, labels, active=None, activecolor='blue', inactive_color='w', size=10, **kwargs)

A class to add buttons to switch layers.

Parameters:
  • f (matplotlib.Figure) – The matplotlib figure to use

  • labels (list of str) – The button labels.

  • active (int) – The index of the initially selected button.

  • activecolor (color) – The color of the selected button.

  • size (float) – Size of the radio buttons

  • Legend. (Further parameters are passed on to) –