Plot data

nPDyn provides a plot window for quasi-elastic neutron scattering (QENS) and elastic/inelastic fixed-window scans (E/IFWS) data.

It can be used as follows:

>>> from nPDyn.plot import plot
>>> plot(sample)

Using the result of the fitting procedure presented in the Fit data section, the data, the fitted model model and the parameters can be examined using the window as shown below:

_images/qensPlot_plot.png

The experimental data are plotted alone with their errors for the selected observable and momentum transfer q value.

_images/qensPlot_plot_with_model.png

Here, the fitted model and its components are added by clicking on the associated checkboxes.

_images/qensPlot_3d.png

An 3D view of all spectra is available by clicking on the ‘3D plot’ button.

_images/qensPlot_analysis.png

The optimized parameters can be plotted by clicking on the ‘Analysis’ button. The global parameters (which are unique for all q-values) are represented by a single horizontal line.

_images/fwsPlot_plot_with_model.png

The data are plotted along the momentum-transfer q-values. The fitted model, which is used to extract the mean-squared displacement is added.

_images/fwsPlot_3D.png

The whole dataset can be plotted using the ‘3D plot’ button.

_images/fwsPlot_analysis_with_errors.png

The optimized parameters can be plotted along different axis (observable, energy, q-values). Here, the uncertainty on the parameters is represented by the blue shaded area around the curve.