plot

Plotting window for Sample class instances.

class plot.Plot(dataset)
analysisObsPlot()

Plot the fitted parameters.

analysisQPlot()

Plot the fitted parameters.

compare()

Plot the experimental data on one subplot, with or without fit

get_eRange(idx=0)

Return the energy values used in the dataset(s).

This assumes the q-values are the same for all datasets.

get_obsRange(idx=0)

Return the observables used in the dataset(s).

This assumes the observables are the same for all datasets.

get_qRange(idx=0)

Return the q-values used in the dataset(s).

This assumes the q-values are the same for all datasets.

initChecks()

This methods is used to perform some checks before finishing class initialization.

obsIdx

Return a list of index of the closest observable value to the slider value for each dataset.

plot()

Plot the experimental data, with or without fit

plot3D()

3D plot of the whole dataset.

updateLabels()

Update the labels on the right of the sliders.

updatePlot()

Redraw the current plot based on the selected parameters.

plot.plot(*samples)

This methods plot the sample data in a PyQt5 widget allowing the user to show different types of plots.

The resolution function and other parameters are automatically obtained from the current dataset class instance.

Parameters:samples (nPDyn.Sample) – Samples to be plotted.