libgs.visualisation.Waterfall

class libgs.visualisation.Waterfall(name, sample_rate=3200, freq=0, wfallwidth=128, wfallheight=100, **fig_args)[source]

LivePlot visualisation of a “waterfall plot”.

This plot must be connected to a FrequencyPlot which will feed it data. The connection is done in the FrequencyPlot constructor.

Parameters:
  • name (str) – The LivePlot name
  • sample_rate (int, optional) – Only affects the figure x-axis which is disabled by default. This parameter will therefore normally have no effect.
  • freq (float, optional) – Only affects the figure x-axis which is disabled by default. This parameter will therefore normally have no effect.
  • wfallwidth (int, optional) – The width of the waterfall (in pixels). Note wfallwidth must divide the number of channels in the spectrum returned by the radio. I.e. if the radio returns a 1024 point fft, then wfallwidth could be 128 since 8 * 128 = 1024. A wfallwidth of 129 will cause an exception and error.
  • wfallheight (int, optinal) – The height of the waterfall (in pixels).
  • **fig_args – Additional arguments to pass to the bokeh.plotting.figure.Figure constructor.

Methods

add_freq_plot(freq) Method to append a spectrum to the waterfall.
create_fig(sources) The create_fig method shall set up a Bokeh Figure object appropriately and return it

Attributes

Inherited from base class

live_data
live_props
name