uos_activpal.gui.raw_marker.UIFileMarkingPlot

class uos_activpal.gui.raw_marker.UIFileMarkingPlot(parent=None, file_path=None, center=None, width=None)[source]

A QWidget which displays, and allow marking of, activPAL raw data.

Displays x, y, z and rss.

__init__(parent=None, file_path=None, center=None, width=None)[source]

Create a UIFileMarkingPlot widget.

Parameters:
  • parent (object) – The parent object.
  • file_path (str) – The path of the file to plot.
  • center (float) – The point the plot should be horizontally centered around.
  • width (float | int) – The width of the plot (range of the x axis) in days.

Methods

__init__([parent, file_path, center, width]) Create a UIFileMarkingPlot widget.
basic_pan([move_factor]) Pan the plot (horizontally).
basic_zoom([scale_factor, xhold]) Zoom in on the plot (horizontally).
clear_markers() Clear all stored markers.
clear_plot() Clear lines from the plot.
create_marker(xdata[, linecolor]) Create a marker line on the plot.
get_nearest_peak(input_array, sample_number) Find the peak in the given array nearest the given samle number.
load_data([file_path]) Load the given data file.
new_plot([center, width]) Create a fresh plot from the loaded file.
update_marker(marker, xdata) Update the location of the given marker.