NNSOM.utils.create_buttons
- NNSOM.utils.create_buttons(fig, button_types)[source]
Create labelled matplotlib Button widgets in a sidebar.
- Parameters:
fig (matplotlib.figure.Figure) – The figure to which buttons are added.
button_types (list of str) – Labels for the buttons to create.
- Returns:
buttons – Mapping from button label to its
Buttonwidget.- Return type:
dict of {str: matplotlib.widgets.Button}