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

  1. With the Session open, go to Viewers → Curves & Digitization → Curve Viewer and press New 2D.
  2. Press Add source…. In Choose canonical Dataset, select xas_singolo and press Apply.
Choose canonical Dataset from Curve Viewer with xas_singolo available.
Choose canonical Dataset from Curve Viewer with xas_singolo available.
  1. On the Source and family tab, choose spectral_x in X Variable ID and spectral_y in Y Variable ID. The lists show identifiers after the display name and unit. Leave Family Variable (optional) blank.
  2. 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.
Single series: spectral_x on the X axis, spectral_y on the Y axis and empty family field.
Single series: spectral_x on the X axis, spectral_y on the Y axis and empty family field.
Curve Viewer directly shows the single spectrum. The profile quickly climbs around 7112 eV.
Curve Viewer directly shows the single spectrum. The profile quickly climbs around 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

  1. Press New 2D and confirm with OK if prompted to replace the draft. Use Add source…, select xas_famiglia and press Apply.
  2. Set X Variable ID to spectral_x, Y Variable ID to spectral_y and Family Variable (optional) to parameter_value.
For xas_famiglia, set Family Variable to parameter_value.
For xas_famiglia, set Family Variable to parameter_value.
  1. 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.
  2. 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.
The four overlapping scans in Curve Viewer, with energy in keV.
The four overlapping scans in Curve Viewer, with energy in keV.

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.

Optional publishing from the viewer with Create new Graph and a title for the exercise.
Optional publishing from the viewer with Create new Graph and a title for the exercise.
The published family is available in the Plots tab with the title chosen.
The published family is available in the Plots tab with the title chosen.