mcstasscript.instrument_diagram.box.ComponentBox
mcstasscript.instrument_diagram.box.ComponentBox¶
- class mcstasscript.instrument_diagram.box.ComponentBox(box_input)¶
Helper class for creating text boxes describing components
- __init__(box_input)¶
Text box object
Methods
__init__
(box_input)Text box object
calculate_bbox_dimensions
(ax, graph_width)Method that gets dimensions of plotted text box
get_text_end
()get_text_start
()plot_box
(ax)set_background_color
(value)set_box_height
(box_height)set_box_indent
(value)set_x
(x)set_y
(y)- calculate_bbox_dimensions(ax, graph_width)¶
Method that gets dimensions of plotted text box