lumeq.plot package
Submodules
lumeq.plot.plot_iteration module
lumeq.plot.plot_orbital_property module
lumeq.plot.plot_wave_energy_temperature module
lumeq.plot.utils module
- add_colorbar_map(plt, ax, color1='royalblue', color2='red', nslice=20, vmin=0.0, vmax=1.0, posx=0.0, posy=0.0, loc='right')[source]
- broadening(centers, heighs, width=0.0005, margin=0.05, method='gaussian', npoints=1001, xrange=None, **kwargs)[source]
Generate broadened spectrum from stick spectrum.
- Parameters:
centers (array_like) – Positions of the stick spectrum peaks.
heights (array_like) – Heights of the stick spectrum peaks.
width (float, optional) – Broadening width parameter sigma. Default is 0.0005.
margin (float, list or tuple, optional) – Extra margin added to the min and max of centers for x-axis range. Default is 0.05.
method (str, optional) – Broadening method. Options are ‘lorentzian’, ‘gaussian’, and ‘voigt’. Default is ‘gaussian’.
npoints (int, optional) – Number of points in the output spectrum. Default is 1001.
xrange (tuple, optional) – Tuple specifying the x-axis range (min, max). If None, it is determined from centers and margin.
gamma (float, optional) – Lorentzian width parameter. Only used if method is ‘voigt’.
gamma_table (array_like, optional) – Table of gamma values for each peak. Only used if method is ‘voigt’.
- Returns:
x-axis values of the broadened spectrum. y (numpy.ndarray): y-axis values of the broadened spectrum.
- Return type:
x (numpy.ndarray)