daplis_rtp.gui.plot_figure_MZI module
Module for plotting photon count from two chosen pixel in real time.
Unpacks the binary data, finds the two pixels requested and plots the number of photons registered by the two pixels. x-axis limits are given by the slider, upper y-axis limit is set as maximum of the two counts plus 10 percent.
- class daplis_rtp.gui.plot_figure_MZI.PltCanvas_MZI(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_MZI(xdataplot, yplotdata1, yplotdata2, xLim, yLim)[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.