gwdetchar.omega.plot module

Plotting routines for omega scans

gwdetchar.omega.plot.spectral_plot(data, gps, span, channel, output, colormap='viridis', clim=None, nx=1400, norm='linear', figsize=(8, 4.35))[source]

Custom plot for a GWPy spectrogram or Q-gram

Parameters:

data : TimeSeries

the series to plot

gps : float

reference GPS time (in seconds) to serve as the origin

span : float

total duration (in seconds) of the time axis

channel : str

name of the channel corresponding to this data

output : str

name of the output file

colormap : str

matplotlib colormap to use, default: viridis

clim : tuple or None

limits of the color axis, default: autoscale with log scaling

norm : str

scaling of the color axis, only used if clim is given, default: linear

nx : int

number of points along the time axis, default: 500

figsize : tuple

size (width x height) of the final figure, default: (12, 6)

gwdetchar.omega.plot.timeseries_plot(data, gps, span, channel, output, ylabel=None, figsize=(9, 4.5))[source]

Custom plot for a GWPy TimeSeries object

Parameters:

data : TimeSeries

the series to plot

gps : float

reference GPS time (in seconds) to serve as the origin

span : float

total duration (in seconds) of the time axis

channel : str

name of the channel corresponding to this data

output : str

name of the output file

ylabel : str or None

label for the y-axis

figsize : tuple

size (width x height) of the final figure, default: (12, 6)

gwdetchar.omega.plot.write_qscan_plots(gps, channel, series, colormap='viridis')[source]

Custom plot utility for a full omega scan

Parameters:

gps : float

reference GPS time (in seconds) to serve as the origin

channel : OmegaChannel

channel corresponding to these data

series : tuple

a collection of TimeSeries, Spectrogram, and QGram objects

colormap : str, optional

matplotlib colormap to use, default: viridis