gwdetchar.omega.plot module

Plotting routines for omega scans

gwdetchar.omega.plot._format_color_axis(ax, colormap='viridis', clim=None, norm='linear')[source]

Format the color axis of an omega scan spectral plot

Parameters:
axAxis

the Axis object to format

colormapstr

matplotlib colormap to use, default: viridis

climtuple or None

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

normstr

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

gwdetchar.omega.plot._format_frequency_axis(ax, yscale='log')[source]

Format the frequency axis of an omega scan plot

Parameters:
axAxis

the Axis object to format

gwdetchar.omega.plot._format_time_axis(ax, gps, span)[source]

Format the time axis of an omega scan plot

Parameters:
axAxis

the Axis object to format

gpsfloat

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

spanfloat

total duration (in seconds) of the time axis

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

Custom plot for a GWPy spectrogram or Q-gram

Parameters:
dataTimeSeries

the series to plot

gpsfloat

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

spanfloat

total duration (in seconds) of the time axis

channelstr

name of the channel corresponding to this data

outputstr

name of the output file

colormapstr

matplotlib colormap to use, default: viridis

climtuple or None

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

yscalestr

scaling of the frequency axis, default: log

normstr

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

nxint

number of points along the time axis, default: 500

figsizetuple

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

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

Custom plot for a GWPy TimeSeries object

Parameters:
dataTimeSeries

the series to plot

gpsfloat

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

spanfloat

total duration (in seconds) of the time axis

channelstr

name of the channel corresponding to this data

outputstr

name of the output file

ylabelstr or None

label for the y-axis

figsizetuple

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

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

Custom plot utility for a full omega scan

Parameters:
gpsfloat

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

channelOmegaChannel

channel corresponding to these data

seriestuple

a collection of TimeSeries, Spectrogram, and QGram objects

fscalestr

scaling of the frequency axis, default: log

colormapstr, optional

matplotlib colormap to use, default: viridis