gwsumm.plot.triggers.core module

Definitions for event trigger plots

class gwsumm.plot.triggers.core.TriggerDataPlot(channels, start, end, state=None, outdir='.', etg=None, **kwargs)[source]

Bases: TriggerPlotMixin, TimeSeriesDataPlot

Standard event trigger plot

add_loudest_event(ax, table, rank, *columns, **kwargs)[source]
data = 'triggers'
defaults = {'animation.convert_args': ['-layers', 'OptimizePlus'], 'axes.axisbelow': False, 'axes.edgecolor': 'gray', 'axes.formatter.limits': [-3, 4], 'axes.formatter.use_mathtext': True, 'axes.grid': True, 'axes.labelpad': 5.0, 'axes.labelsize': 18.0, 'axes.titlesize': 22.0, 'clim': None, 'cmap': 'YlGnBu', 'color': None, 'colorlabel': None, 'contour.algorithm': 'mpl2014', 'edgecolor': 'face', 'facecolor': None, 'figure.figsize': [12.0, 6.0], 'figure.labelsize': 'large', 'figure.labelweight': 'normal', 'font.sans-serif': ['Roboto'], 'grid.alpha': 0.5, 'grid.linewidth': 0.5, 'legend.edgecolor': 'inherit', 'legend.fancybox': False, 'legend.fontsize': 10.0, 'legend.handlelength': 1.0, 'legend.numpoints': 2, 'logcolor': False, 'marker': 'o', 'mathtext.bf': 'Roboto', 'mathtext.cal': 'Calligraffiti', 'mathtext.fontset': 'custom', 'mathtext.it': 'Roboto:italic', 'mathtext.rm': 'Roboto', 'mathtext.sf': 'Roboto', 'mathtext.tt': 'Roboto Slab', 's': 20, 'savefig.transparent': True, 'svg.fonttype': 'none', 'text.parse_math': True, 'vmax': None, 'vmin': None, 'x': 'time', 'xscale': 'auto-gps', 'xtick.labelsize': 14.0, 'y': 'snr', 'yscale': 'linear', 'ytick.labelsize': 14.0}

dict of default plotting kwargs

draw()[source]

Read in all necessary data, and generate the figure.

property pid

Unique identifier for this TriggerDataPlot.

Extends the standard TimeSeriesDataPlot pid with the ETG and each of the column names.

type = 'triggers'

name for DataPlot subclass

class gwsumm.plot.triggers.core.TriggerHistogramPlot(*args, **kwargs)[source]

Bases: TriggerPlotMixin, TimeSeriesHistogramPlot

HistogramPlot from a LIGO_LW Table

data = 'triggers'
draw()[source]

Get data and generate the figure.

property pid
type = 'trigger-histogram'

name for DataPlot subclass

class gwsumm.plot.triggers.core.TriggerPlotMixin(*args, **kwargs)[source]

Bases: object

Mixin to overwrite channels property for trigger plots

We don’t need to get channel data for trigger plots.

property allchannels

List of all unique channels for this plot

property pid
class gwsumm.plot.triggers.core.TriggerRateDataPlot(*args, **kwargs)[source]

Bases: TriggerPlotMixin, TimeSeriesDataPlot

TimeSeriesDataPlot of trigger rate.

data = 'triggers'
defaults = {'animation.convert_args': ['-layers', 'OptimizePlus'], 'axes.axisbelow': False, 'axes.edgecolor': 'gray', 'axes.formatter.limits': [-3, 4], 'axes.formatter.use_mathtext': True, 'axes.grid': True, 'axes.labelpad': 5.0, 'axes.labelsize': 18.0, 'axes.titlesize': 22.0, 'column': None, 'contour.algorithm': 'mpl2014', 'figure.figsize': [12.0, 6.0], 'figure.labelsize': 'large', 'figure.labelweight': 'normal', 'font.sans-serif': ['Roboto'], 'grid.alpha': 0.5, 'grid.linewidth': 0.5, 'legend-bbox_to_anchor': (1.0, 1.0), 'legend-frameon': False, 'legend-loc': 'upper left', 'legend-markerscale': 3, 'legend.edgecolor': 'inherit', 'legend.fancybox': False, 'legend.fontsize': 10.0, 'legend.handlelength': 1.0, 'legend.numpoints': 2, 'mathtext.bf': 'Roboto', 'mathtext.cal': 'Calligraffiti', 'mathtext.fontset': 'custom', 'mathtext.it': 'Roboto:italic', 'mathtext.rm': 'Roboto', 'mathtext.sf': 'Roboto', 'mathtext.tt': 'Roboto Slab', 'savefig.transparent': True, 'svg.fonttype': 'none', 'text.parse_math': True, 'xscale': 'auto-gps', 'xtick.labelsize': 14.0, 'ylabel': 'Rate [Hz]', 'yscale': 'linear', 'ytick.labelsize': 14.0}

dict of default plotting kwargs

draw()[source]

Read in all necessary data, and generate the figure.

property pid
type = 'trigger-rate'

name for DataPlot subclass

class gwsumm.plot.triggers.core.TriggerTimeSeriesDataPlot(*args, **kwargs)[source]

Bases: TimeSeriesDataPlot

Custom time-series plot to handle discontiguous TimeSeries.

data = 'triggers'
draw()[source]

Read in all necessary data, and generate the figure.

type = 'trigger-timeseries'

name for DataPlot subclass