mcstasscript.jb_interface.plot_interface.OrdersOfMagField#
- class mcstasscript.jb_interface.plot_interface.OrdersOfMagField(set_orders_of_mag)#
Class for handling orders_of_mag widget
- __init__(set_orders_of_mag)#
Widget for entering orders_of_mag used in log plotting
Orders_of_mag parameter controls how many orders of magnitude are plotted when showing log scale, counting from the highest value and down. The object needs an update function orders_of_mag. The widget text field starts with the text “disabled” which corresponds to the default value of 300 orders of magnitude.
- Parameters:
set_orders_of_mag (function) – Function for updating orders_of_mag value
Methods
__init__(set_orders_of_mag)Widget for entering orders_of_mag used in log plotting
Creates actual widget with descriptive text
update(change)Update orders_of_mag and replot
- make_widget()#
Creates actual widget with descriptive text
- update(change)#
Update orders_of_mag and replot
- Parameters:
change (widget change) – state change of widget