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
- gwdetchar.omega.plot._format_frequency_axis(ax, yscale='log')[source]¶
Format the frequency axis of an omega scan plot
- Parameters:
- ax
Axis
the
Axis
object to format
- ax
- gwdetchar.omega.plot._format_time_axis(ax, gps, span)[source]¶
Format the time axis of an omega scan plot
- 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:
- 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
orNone
limits of the color axis, default: autoscale with log scaling
- yscale
str
scaling of the frequency axis, default: log
- 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)
- data
- gwdetchar.omega.plot.timeseries_plot(data, gps, span, channel, output, ylabel=None, figsize=(12, 6))[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
orNone
label for the y-axis
- figsize
tuple
size (width x height) of the final figure, default:
(12, 6)
- data
- gwdetchar.omega.plot.write_qscan_plots(gps, channel, series, fscale='log', 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
, andQGram
objects- fscale
str
scaling of the frequency axis, default: log
- colormap
str
, optional matplotlib colormap to use, default: viridis
- gps