daplis_rtp.gui.single_pixel_histogram module
Module for plotting single pixel histograms.
The main usage is checking the homogeneity of the LinoSPAD2 output. The output graph should be flat top.
- class daplis_rtp.gui.single_pixel_histogram.HistCanvas(parent=None, width=7, height=4, dpi=100)[source]
Bases:
QWidget
- __init__(parent=None, width=7, height=4, dpi=100)[source]
Figure widget initialization.
The figure is initialized with the matplotlib navigation panel for more control over the plot.
- 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.
- plot_hist(file: str, pixel: int, timestamps: int, board_number: str, fw_ver: str, cycle_length: float)[source]
Plot histogram.
Plots a histogram of timestamps for a single pixel. Bin size is set to 17.867 us.
- Parameters:
file (str) – Data file address.
pixel (int) – Pixel number to plot a histogram for.
timestamps (int) – Number of timestamps per pixel/TDC per acquisition cycle.
board_number (str) – LinoSPAD2 daughterboard number.
fw_ver (str) – LinoSPAD2 firmware version.