daplis_rtp.gui.plot_figure module
Module for plotting data in the real-time plotting tab.
Plots the data provided as number of timestamps vs. pixel number. Options for changing the plot scale (linear or logarithmic) and plotting of vertical lines at positions 64, 128, and 192 are provided. The figure widget is generated with the matplotlib navigation bar for additional control over the plot.
- class daplis_rtp.gui.plot_figure.PltCanvas(parent=None, width=7, height=4, dpi=100)[source]
Bases:
QWidget
- __init__(parent=None, width=7, height=4, dpi=100)[source]
Creation of the figure widget.
The widget is created with the bar with options.
- Parameters:
width (int, optional) – Figure widget width, by default 7.
height (int, optional) – Figure widget height, by default 4.
dpi (int, optional) – Figure widget dpi, by default 100.
- setPlotData(xdataplot, yplotdata, xLim, grouping: bool = False)[source]
Plot data.
Plot the provided data while following the state of the axis limits and the switch for plotting vertical lines at positions 64, 128, and 192.
- Parameters:
xdataplot (array) – Data for the x-axis: pixel numbers.
yplotdata (array-like) – Data for the y-axis: number of timestamps.
xLim (list) – Limits for the x-axis.
grouping (bool, optional) – Switch for plotting vertical lines at positiong 64, 128, and 192, by default False.