Sonogram

class cued_datalogger.analysis.sonogram.SonogramDisplayWidget(parent=None, window_width=256, window_overlap_fraction=8, contour_spacing_dB=5, num_contours=5)

Bases: cued_datalogger.api.pyqtgraph_extensions.ColorMapPlotWidget

The SonogramDisplayWidget is the main display widget for everything in the sonogram domain.

Methods

calculate_sonogram()

Calculate the sonogram, and store the values in the channel (including autogenerated datasets). Sonogram data is in complex form.

set_selected_channels(selected_channels)

Update which channel is being plotted.

update_contour_spacing(value)

Slot for updating the plot when the contour spacing is changed.

update_num_contours(value)

Slot for updating the plot when the number of contours is changed.

update_plot()

Clear the canvas and replot.

update_window_overlap_fraction(value)

Slot for updating the plot when the window overlap fraction is changed.

update_window_width(value)

Slot for updating the plot when the window width is changed.

class cued_datalogger.analysis.sonogram.SonogramToolbox(parent=None)

Bases: cued_datalogger.api.toolbox.Toolbox

Toolbox containing Sonogram controls.

Methods

set_selected_channels(selected_channels)

Update which channel is being plotted

class cued_datalogger.analysis.sonogram.MatplotlibSonogramContourWidget(sonogram_toolbox=None, channel=None, contour_spacing_dB=None, num_contours=None)

Bases: cued_datalogger.api.pyqt_extensions.MatplotlibCanvas

A MatplotlibCanvas widget displaying the Sonogram contour plot.

Attributes

fixed_dpi  

Methods

set_selected_channels(selected_channels)

Update which channel is being plotted.

update_contour_sequence()

Update the array which says where to plot contours, how many etc.

update_contour_spacing(value)

Slot for updating the plot when the contour spacing is changed.

update_num_contours(value)

Slot for updating the plot when the number of contours is changed.

update_plot()

Redraw the sonogram on the canvas.