Display XAS Spectra in Curve Viewer
Plot one spectrum, overlay four scans and publish the plot when needed.
Start with XAS Datasets
Use Curve Viewer to view the spectrum in the same window, zoom into the absorption edge and compare scans. Use the same Dataset as in the guide. For this test, acquire the CSV of the single spectrum as xas_singolo and acquire the family of four scans as xas_famiglia.
Draw a single spectrum
- With the Session open, go to Viewers → Curves & Digitization → Curve Viewer and press New 2D.
- Press Add source…. In Choose canonical Dataset, select
xas_singoloand press Apply.

- On the Source and family tab, choose
spectral_xin X Variable ID andspectral_yin Y Variable ID. The lists show identifiers after the display name and unit. Leave Family Variable (optional) blank. - Confirm with Apply. The default Plot settings draw a line on the left axis. Press Fit to fit the curve. The spectral_x (eV) axis shows energy, and the signal rises sharply near 7112 eV.


The same setup applies to xas_trasmissione, xas_fluorescenza and xas_rapporto. Switch the Dataset in the picker, then use spectral_x and spectral_y again.
Overlay four scans
- Press New 2D and confirm with OK if prompted to replace the draft. Use Add source…, select
xas_famigliaand press Apply. - Set X Variable ID to
spectral_x, Y Variable ID tospectral_yand Family Variable (optional) toparameter_value.

- Press Apply and then Fit. The family field separates the scans into four curves on the same plot. In this example, 1–4 identifies scan order. The family Dataset uses keV, and the edge appears near 7.11 keV.
- Use the mouse wheel over the plot to zoom into the edge. Drag with the middle button to pan and press Fit to restore the full view.

Save or publish the plot
Save Workspace saves an editable draft. To find the plot in the Plots tab of the main window, use Publish Plot…, choose Create new Graph, enter a recognizable title such as Confronto XAS sintetico and press Apply. After confirmation, select the row with that title in Plots. The Module column shows plot.dataset, the module that manages the published plot.

