skyllh.plotting.i3 package

Submodules

skyllh.plotting.i3.backgroundpdf module

Plotting module to plot IceCube specific background PDF objects.

class skyllh.plotting.i3.backgroundpdf.BackgroundI3SpatialPDFPlotter(tdm, pdf)

Bases: object

Plotter class to plot an BackgroundI3SpatialPDF object.

Creates a new plotter object for plotting an BackgroundI3SpatialPDF object.

Parameters:
property pdf

The PDF object to plot.

property tdm

The TrialDataManager that provides the data for the PDF evaluation.

plot(src_hypo_group_manager, axes)

Plots the spatial PDF. It uses the sin(dec) binning of the PDF to propperly represent the resolution of the PDF in the drawing.

Parameters:
  • src_hypo_group_manager (instance of SourceHypoGroupManager) – The instance of SourceHypoGroupManager that defines the source hypotheses.

  • axes (mpl.axes.Axes) – The matplotlib Axes object on which the PDF should get drawn to.

Returns:

img (instance of mpl.AxesImage) – The AxesImage instance showing the PDF image.

skyllh.plotting.i3.pdf module

Plotting module to plot IceCube specific PDF objects.

class skyllh.plotting.i3.pdf.I3EnergyPDFPlotter(tdm, pdf)

Bases: object

Plotter class to plot an I3EnergyPDF object.

Creates a new plotter object for plotting an I3EnergyPDF object.

Parameters:
  • tdm (instance of TrialDataManager) – The instance of TrialDataManager that provides the data for the PDF evaluation.

  • pdf (I3EnergyPDF) – The PDF object to plot.

property pdf

The PDF object to plot.

property tdm

The TrialDataManager that provides the data for the PDF evaluation.

plot(src_hypo_group_manager, axes, **kwargs)

Plots the PDF object.

Parameters:
  • src_hypo_group_manager (instance of SourceHypoGroupManager) – The instance of SourceHypoGroupManager that defines the source hypotheses.

  • axes (mpl.axes.Axes) – The matplotlib Axes object on which the PDF ratio should get drawn to.

  • fitparams (dict) – The dictionary with the set of fit paramater values.

  • Arguments (Additional Keyword) –

  • ----------------------------

  • mpl.imshow (Any additional keyword arguments will be passed to the) –

  • function.

Returns:

img (instance of mpl.AxesImage) – The AxesImage instance showing the PDF ratio image.

skyllh.plotting.i3.pdfratio module

Plotting module to plot IceCube specific PDF ratio objects.

class skyllh.plotting.i3.pdfratio.I3EnergySigSetOverBkgPDFRatioSplinePlotter(tdm, pdfratio)

Bases: object

Plotter class to plot an I3EnergySigSetOverBkgPDFRatioSpline object.

Creates a new plotter object for plotting an I3EnergySigSetOverBkgPDFRatioSpline object.

Parameters:
property pdfratio

The PDF ratio object to plot.

property tdm

The TrialDataManager that provides the data for the PDF evaluation.

plot(src_hypo_group_manager, axes, fitparams, **kwargs)

Plots the PDF ratio for the given set of fit paramater values.

Parameters:
  • src_hypo_group_manager (instance of SourceHypoGroupManager) – The instance of SourceHypoGroupManager that defines the source hypotheses.

  • axes (mpl.axes.Axes) – The matplotlib Axes object on which the PDF ratio should get drawn to.

  • fitparams (dict) – The dictionary with the set of fit paramater values.

  • Arguments (Additional Keyword) –

  • ----------------------------

  • mpl.imshow (Any additional keyword arguments will be passed to the) –

  • function.

Returns:

img (instance of mpl.AxesImage) – The AxesImage instance showing the PDF ratio image.