HistoFilled

class gdt.core.plot.plot.HistoFilled(bins, ax, color=None, alpha=None, fill_alpha=0.2, **kwargs)[source]

Bases: PlotElement

Plot a filled histogram.

Parameters:
  • bins (TimeBins or EnergyBins) – The lightcurve or count spectrum histograms

  • ax (matplotlib.axes) – The axis on which to plot

  • color (str, optional) – The color of the rate histograms

  • alpha (float, optional) – The alpha of the edges. Default is 1

  • fill_alpha (float, optional) – The alpha of the fill. Default is 0.2

  • **kwargs – Other plotting options

Attributes Summary

alpha

The alpha opacity value of the edge

artists

The object references to the individual matplotlib elements

color

The color of the plot element

fill_alpha

The alpha opacity value of the fill

linestyle

The linestyle of the histogram.

linewidth

The line width of the histogram.

visible

True if the element is shown on the plot, False otherwise

zorder

The plot element zorder

Methods Summary

hide()

Hide the plot element

remove()

Remove the plot element

show()

Show the plot element

toggle()

Toggle the visibility of the plot element

Attributes Documentation

alpha

The alpha opacity value of the edge

Type:

(float)

artists

The object references to the individual matplotlib elements

Type:

(list)

color

The color of the plot element

Type:

(str)

fill_alpha

The alpha opacity value of the fill

Type:

(float)

linestyle

The linestyle of the histogram. Default is ‘-’

Type:

(str)

linewidth

The line width of the histogram. Default is 1.5

Type:

(int)

visible

True if the element is shown on the plot, False otherwise

Type:

(bool)

zorder

The plot element zorder

Type:

(int)

Methods Documentation

hide()

Hide the plot element

remove()

Remove the plot element

show()

Show the plot element

toggle()

Toggle the visibility of the plot element