gstlal
1.13.0
Toggle main menu visibility
Loading...
Searching...
No Matches
python
pipeparts
plot.py
1
"""Module for producing plotting elements
2
3
"""
4
5
from
gstlal.pipeparts
import
pipetools
6
7
8
def
channelgram
(pipeline: pipetools.Pipeline, src: pipetools.Element, **properties: dict) -> pipetools.Element:
9
"""Scrolling channel amplitude plot, generates video showing a scrolling plot of channel amplitudes.
10
11
Args:
12
pipeline:
13
Gst.Pipeline, the pipeline to which the new element will be added
14
src:
15
Gst.Element, the source element
16
**properties:
17
dict, keyword arguments to be set as element properties
18
19
Notes:
20
Available Properties:
21
plot_width:
22
float, default 0.0, width of the plot in seconds. (0 = 1/framerate)
23
24
References:
25
[1] ChannelGram Implementation: gstlal/gstlal/gst/python/lal_channelgram.py
26
27
Returns:
28
Element, the plot element
29
"""
30
return
pipetools.make_element_with_src(pipeline, src,
"lal_channelgram"
, **properties)
31
32
33
def
spectrum
(pipeline: pipetools.Pipeline, src: pipetools.Element, **properties: dict) -> pipetools.Element:
34
"""Power spectrum plot, generates a video showing a power spectrum (e.g., as measured by lal_whiten).
35
36
Args:
37
pipeline:
38
Gst.Pipeline, the pipeline to which the new element will be added
39
src:
40
Gst.Element, the source element
41
**properties:
42
dict, keyword arguments to be set as element properties
43
44
Notes:
45
Available properties:
46
f_min:
47
float, default 10.0, Lower bound of plot in Hz
48
f_max:
49
float, default 4000.0, Upper bound of plot in Hz
50
51
References:
52
[1] SpectrumPlot Implementation: gstlal/gstlal/gst/python/lal_spectrumplot.py
53
54
Returns:
55
Element, the plot element
56
"""
57
return
pipetools.make_element_with_src(pipeline, src,
"lal_spectrumplot"
, **properties)
58
59
60
def
histogram
(pipeline: pipetools.Pipeline, src: pipetools.Element) -> pipetools.Element:
61
"""Histogram plot, generates a video showing a histogram of the input time series.
62
63
Args:
64
pipeline:
65
Gst.Pipeline, the pipeline to which the new element will be added
66
src:
67
Gst.Element, the source element
68
69
References:
70
[1] HistogramPlot Implementation: gstlal/gstlal/gst/python/lal_histogramplot.py
71
72
Returns:
73
Element, the plot element
74
"""
75
return
pipetools.make_element_with_src(pipeline, src,
"lal_histogramplot"
)
python.pipeparts.plot.channelgram
pipetools.Element channelgram(pipetools.Pipeline pipeline, pipetools.Element src, **dict properties)
Definition
plot.py:8
python.pipeparts.plot.histogram
pipetools.Element histogram(pipetools.Pipeline pipeline, pipetools.Element src)
Definition
plot.py:60
python.pipeparts.plot.spectrum
pipetools.Element spectrum(pipetools.Pipeline pipeline, pipetools.Element src, **dict properties)
Definition
plot.py:33
Generated by
1.17.0