TimesSeriesPlotMixin#
- class stixpy.product.sources.TimesSeriesPlotMixin[source]#
Bases:
objectTimesSeries plot mixin providing timeseries plotting for pixel data.
Methods Summary
plot_timeseries([vtype, time_indices, ...])Plot a times series of the selected times and energies.
Methods Documentation
- plot_timeseries(
- vtype='dcr',
- time_indices=None,
- energy_indices=None,
- detector_indices='all',
- pixel_indices='all',
- axes=None,
- error_bar=False,
- **plot_kwarg,
Plot a times series of the selected times and energies.
- Parameters:
vtype (str) –
- Type of value to return control the default normalisation:
’c’ - count [c]
’cr’ - count rate [c/s]
’dcr’ - differential count rate [c/(s keV)]
time_indices (
listornumpy.ndarray) – If an 1xN array will be treated as mask if 2XN array will sum data between given indices. For exampletime_indices=[0, 2, 5]would return only the first, third and sixth times whiletime_indices=[[0, 2],[3, 5]]would sum the data between.energy_indices (
listornumpy.ndarray) – If an 1xN array will be treated as mask if 2XN array will sum data between given indices. For exampleenergy_indices=[0, 2, 5]would return only the first, third and sixth times whileenergy_indices=[[0, 2],[3, 5]]would sum the data between.detector_indices (
listornumpy.ndarray) – If an 1xN array will be treated as mask if 2XN array will sum data between given indices. For exampledetector_indices=[0, 2, 5]would return only the first, third and sixth detectors whiledetector_indices=[[0, 2],[3, 5]]would sum the data between.pixel_indices (
listornumpy.ndarray) – If an 1xN array will be treated as mask if 2XN array will sum data between given indices. For examplepixel_indices=[0, 2, 5]would return only the first, third and sixth pixels whilepixel_indices=[[0, 2],[3, 5]]would sum the data between.axes (optional
matplotlib.axes) – The matplotlib axes on which to plot the time series.error_bar (optional
bool) – Add error bars to plot.**plot_kwargs (
dict) – Any additional arguments are passed toplot().
- Returns: