Beam-Limiting Devices
Jaws
Calling plot_bld with jaws will plot a simple rectangle where the jaw positions lie,
plot_bld(jaws)
RoentgenPlots.plot_bld! — Methodplot_bld!(p, jaws::Jaws; kwargs...)Plot the jaw positions.
kwargs... are passed to Plots.jl plot
Axes Limits
As well as plotting the positions of the jaws, the axis limits can also be set based on the jaw positions,
axes_lims!(jaws)
RoentgenPlots.axes_lims! — Methodaxes_lims!(p, jaws::Jaws; pad=10.)Set the axes limits to the position of the jaws.
By default, a pad of 10 mm is added to each side.
Multi-Leaf Collimator
Calling plot_bld! with an MLC fills in the region obscured by the leaves.
plot_bld(mlc)
RoentgenPlots.plot_bld! — Methodplot_bld!(p, mlc::MultiLeafCollimator; kwargs...)Plot the aperture of a MultiLeafCollimator with leaf positions.
Fills the area obstructed by leaves, unless invert=true where it fills the open aperture.
Args:
invert: Fills the region not obscured by the leaves, defaults tofalsefill: Whether to fill, defaults totruefillalpha: Transparency of the fill, defaults to 0.1leaf_length: The length of the leaves, defaults to 125 mm- Further
kwargs...are passed to Plots.jlplot()
Here, plot_bld! is used to add to an existing figure:
plot_bld(mlc; label="Default")
plot_bld!(mlc+(25., 30.); invert=true, fillalpha=0.8, label="Inverted")
plot_bld!(mlc-(50., 50.); fill=false, label="No fill")