tomopt.plotting package¶
Submodules¶
tomopt.plotting.appearance module¶
tomopt.plotting.diagnostics module¶
- tomopt.plotting.diagnostics.plot_hit_density(hit_df, savename=None)[source]¶
Plots the position of muon hits in the detectors, as recorded using
HitRecord
.- Parameters:
hit_df (
DataFrame
) – Dataframe of recorded hits, as returned byget_record()
savename (
Optional
[str
]) – optional savename to save the plot
- Return type:
None
- tomopt.plotting.diagnostics.plot_scatter_density(scatter_df, savename=None)[source]¶
Plots the position of PoCAs in the passive volume, as recorded using
ScatterRecord
.- Parameters:
scatter_df (
DataFrame
) – Dataframe of recorded PoCAs, as returned byget_record()
savename (
Optional
[str
]) – optional savename to save the plot
- Return type:
None
tomopt.plotting.predictions module¶
- tomopt.plotting.predictions.plot_pred_true_x0(pred, true, savename=None)[source]¶
Plots the predicted voxelwise X0s compared to the true values of the X0s. 2D plots are produced in xy for layers in z in order of increasing z, i.e. the bottom most layer is the first to be plotted. TODO: revise this ordering to make it more intuitive
- Parameters:
pred (
ndarray
) – (z,x,y) array of predicted X0strue (
ndarray
) – (z,x,y) array of true X0ssavename (
Optional
[str
]) – optional savename for saving the plot
- Return type:
None