mcstasscript.jb_interface.plot_interface.MonitorDropdown#

class mcstasscript.jb_interface.plot_interface.MonitorDropdown(set_current_monitor)#

Class for creating monitor dropdown menu

__init__(set_current_monitor)#

Sets up MonitorDropdown menu with given update function

Parameters:

update_plot (function) – function called to update plot

Methods

__init__(set_current_monitor)

Sets up MonitorDropdown menu with given update function

make_widget()

Builds the widget for the dropdown menu and links to update method

set_data(data)

Updates the menu options given new data

update(change)

Calls update_function when dropdown menu is used

make_widget()#

Builds the widget for the dropdown menu and links to update method

set_data(data)#

Updates the menu options given new data

Parameters:

data (McStasData list) – Data returned by McStasScript simulation

update(change)#

Calls update_function when dropdown menu is used

Parameters:

change (widget change) – state change of widget