gwdetchar.scattering.plot module¶
Plotting routines for scattering checks
- gwdetchar.scattering.plot._format_spectrogram(ax, qspecgram, colormap='viridis')[source]¶
Helper tool to format a
Spectrogram
plot axis
- gwdetchar.scattering.plot._format_timeseries(ax, gps, fringe, multipliers=(1, 2, 4, 8), linewidth=1, thresh=None)[source]¶
Helper tool to format a
TimeSeries
plot axis
- gwdetchar.scattering.plot.spectral_comparison(gps, qspecgram, fringe, output, thresh=15, multipliers=(1, 2, 4, 8), colormap='viridis', figsize=[12, 8])[source]¶
Compare a high-resolution spectrogram with projected fringe frequencies
- Parameters:
- gps
float
reference GPS time (in seconds) to serve as the origin
- qspecgram
Spectrogram
an interpolated high-resolution spectrogram
- fringe
TimeSeries
projected fringe frequencies (in Hz)
- output
str
name of the output file
- thresh
float
, optional frequency threshold (Hz) for scattering fringes, default: 15
- multipliers
tuple
, optional collection of fringe harmonic numbers to plot, can be given in any order, default:
(1, 2, 4, 8)
- colormap
str
, optional matplotlib colormap to use, default: viridis
- figsize
tuple
, optional size (width x height) of the final figure, default:
(12, 8)
- gps
- gwdetchar.scattering.plot.spectral_overlay(gps, qspecgram, fringe, output, multipliers=(1, 2, 4, 8), figsize=[12, 4])[source]¶
Overlay scattering fringe projections on top of a high-resolution spectrogram
- Parameters:
- gps
float
reference GPS time (in seconds) to serve as the origin
- qspecgram
Spectrogram
an interpolated high-resolution spectrogram
- fringe
TimeSeries
projected fringe frequencies (in Hz)
- output
str
name of the output file
- multipliers
tuple
, optional collection of fringe harmonic numbers to plot, can be given in any order, default:
(1, 2, 4, 8)
- figsize
tuple
, optional size (width x height) of the final figure, default:
(12, 4)
- gps