PixelPlotMixin#

class stixpy.product.sources.PixelPlotMixin[source]#

Bases: object

Pixel plot mixin providing pixel plotting for pixel data.

Methods Summary

plot_pixels([time_indices, energy_indices, fig])

Plot individual pixel data for each detector.

Methods Documentation

plot_pixels(time_indices=None, energy_indices=None, fig=None)[source]#

Plot individual pixel data for each detector.

Parameters:
  • time_indices (list or numpy.ndarray) – If an 1xN array will be treated as mask if 2XN array will sum data between given indices. For example time_indices=[0, 2, 5] would return only the first, third and sixth times while time_indices=[[0, 2],[3, 5]] would sum the data between.

  • energy_indices (list or numpy.ndarray) – If an 1xN array will be treated as mask if 2XN array will sum data between given indices. For example energy_indices=[0, 2, 5] would return only the first, third and sixth times while energy_indices=[[0, 2],[3, 5]] would sum the data between.

  • fig (optional matplotlib.figure) – The figure where to which the pixel plot will be added.

Returns:

matplotlib.figure – The figure