SpectrumButterfly

class gammapy.spectrum.SpectrumButterfly(data=None, masked=None, names=None, dtype=None, meta=None, copy=True, rows=None, copy_indices=True, **kwargs)[source]

Bases: astropy.table.QTable

Spectral model butterfly class.

Columns:

  • energy
  • flux_lo
  • flux
  • flux_hi

Methods Summary

plot([energy_range, ax, energy_power, ...]) Plot.

Methods Documentation

plot(energy_range=None, ax=None, energy_power=0, energy_unit='TeV', flux_unit='cm-2 s-1 TeV-1', **kwargs)[source]

Plot.

kwargs are passed to matplotlib.pyplot.fill_between.