atomcloud.plots.plot_1d module
Created on Tue Mar 22 23:03:21 2022
@author: hofer
- class atomcloud.plots.plot_1d.Plot1DFit[source]
Bases:
PlotBaseClass for plotting 1D fits. Inherits from the base plotting class.
- plot_1Dfit(x, data_dict, title_str, savepath=None)[source]
Handles the actual plotting of the 1D fit data using matplotlib.pyplot (see plot_fit for variable descriptions).
- plot_fit(fit_dicts, x, data, mask=None, title='', savepath=None, verbose=True, *args, **kwargs)[source]
Plot the fit results
- Parameters:
fit_dicts (dict) – Dictionary containing the fit results for a 1D multi-function fit.
x (np.ndarray) – The x coordinates of the data.
data (np.ndarray) – The original data which was fit using the multi-function to determine the parameters (params).
mask (np.ndarray, optional) – The mask to be applied to the data.
title (str, optional) – The title of the plot. Defaults to ‘’.
savepath (str, optional) – The path to save the plot. Defaults to None.
verbose (bool, optional) – If True, the data for each function will be returned. Defaults to True.
- Return type:
None