structure module
Define helper functions to visualize elements.
Todo
Information on the objective under the cursor (hover).
- patch_kwargs(elt, x_axis, idx=None, color=None, alpha=None)[source]
Give kwargs for the patch function.
- _limits(elts, x_axis)[source]
Give the limits of the plot.
- Parameters:
elts (
ListOfElements)x_axis (
Literal['z_abs','elt_idx'])
- Return type:
- plot_structure(elts, ax, x_axis='z_abs')[source]
Plot structure of the linac under study.
- Parameters:
elts (
ListOfElements)ax (
Axes)x_axis (
Literal['z_abs','elt_idx'], default:'z_abs')
- Return type: