SpectrogramPlotMixin#
- class stixpy.product.sources.SpectrogramPlotMixin[source]#
Bases:
objectSpectrogram plot mixin providing spectrogram plotting for pixel data.
Methods Summary
plot_spectrogram([axes, time_indices, ...])Plot a spectrogram for the selected time and energies.
Methods Documentation
- plot_spectrogram(axes=None, time_indices=None, energy_indices=None, detector_indices='all', pixel_indices='all', **plot_kwargs)[source]#
Plot a spectrogram for the selected time and energies.
- Parameters:
axes (optional
matplotlib.axes) – The axes the plot the spectrogram.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.**plot_kwargs (
dict) – Any additional arguments are passed topcolormesh().
- Returns: