exatomic.plotter.plot module
Plotter
This is supposed to be a collection of classes and functions to aid in plotting
- exatomic.plotter.plot.lorentzian(freq, x, fwhm, inten=None)[source]
Plot lorentzian lineshapes
- Parameters:
freq (np.ndarray) – Frequencies where the peaks will be located
x (np.ndarray) – X-axis data points
fwhm (float) – Full-width at half maximum
inten (np.ndarray) – Intensities of the peaks
- Returns:
y (np.ndarray) – Y values of the lorentzian lineshapes
- exatomic.plotter.plot.gaussian(freq, x, fwhm, inten=None)[source]
Plot gaussian lineshapes
- Parameters:
freq (np.ndarray) – Frequencies where the peaks will be located
x (np.ndarray) – X-axis data points
fwhm (float) – Full-width at half maximum
inten (np.ndarray) – Intensities of the peaks
- Returns:
y (np.ndarray) – Y values of the gaussian lineshapes
- class exatomic.plotter.plot.Plot(*args, **kwargs)[source]
Bases:
object
Class that has a collection of methods to make plotting easier. Some of the bokeh functions require importing specific functions like ‘show’ to display the figure. We want to make this easier by defining methods like show so we can just import the class and it takes care of everything.