qspec logo qspec logo

A physics toolbox for laser spectroscopy.

Static Badge Static Badge Static Badge

Static Badge Static Badge

© 2026 Patrick Müller. All rights reserved.

qspec.Observable. hist  (  size=1000000 ,  n_bins=200  )[source]

Plot a histogram of random variates of the observable together with its pdf.

Parameters:
sizeint_like

The number of random variates. The default is 1,000,000.

n_binsint_like

The number of bins.