Work with Persistent Plots

Read and save the plot produced by the viewer. Inspect points and source rows.

Find and display the plot

In Plots, Refresh reloads the Session outputs. Select the variant identified by pNNNN in the editor title. The table shows Use, Module and Plot. Selecting a row controls the preview. Selection → All / None / Toggle changes which rows are active, and Up / Down changes their order. For a registered plot, the Session saves these choices.

Render → Rerender renders the current plot again. Rerender selected processes selected rows and Rerender module regenerates the relevant module outputs. The renderer uses a valid cache. Graph → Graph info… shows details of the variant and its output. Graph → Plot controls help… opens help for the shared controls.

Graph → Open PNG 1:1 opens the PNG viewer. Fit fits the full image, Zoom + / − changes the zoom, Reset restores the default view and Fit area fits a marked region. The status pane shows the original dimensions and current scale.

Plots shows the selected persistent family variant and its plot on the right.
Plots shows the selected persistent family variant and its plot on the right.

Plot layout → Show controls opens settings for the Left [%], Right [%], Top [%] and Bottom [%] margins. Panel gap [%] separates multiple panels. Y-label offset [%] moves the vertical labels. Values are percentages of the presentation area. The external legend reserves additional space. Apply and rerender updates the plot, Restore automatic restores automatic margins and Hide controls closes the pane.

Change the series with PlotSpec v2 Series

PlotSpec v2 Series opens the XAS plot’s series table. Select a row to edit it or enter a new identity. Panel assigns the series to a panel. ID identifies the series. Dataset chooses the source, and X and Y select available variables. Axis uses left or right. Label sets the legend text, and Enabled controls whether the series appears. After Add/update series, check the row in the table. Remove selected series removes the series from PlotSpec. Up and Down change the series order. Close closes the editor.

XAS plots usually use line. Kind also offers auto, scatter (points), line_marker (line and markers), step (steps), errorbar (uncertainties), band (band), bar (bars), histogram (distribution by bin) and box_whisker (box plot). Choose these types when the variables and purpose of the plot call for them. The example Datasets have no separate uncertainty columns.

Color / Line style / Line width
Set the color, pattern and width. Automatic makes an automatic choice, and Inherit uses the inherited value. For the line pattern, choose solid, dashed, dotted, dashdot or none. auto and inherit follow the corresponding style rules.
Marker / Marker size / Marker fill
Choose a marker shape and size from none, circle, square, diamond, triangle_up, triangle_down, plus, x, star, auto and inherit. For fill, none leaves the marker hollow and full fills it. Opacity controls whether the series is visible.
Step mode
For a step plot, pre changes level before the point, post after it and mid between two coordinates.
Bar width / Bar baseline / Bar X lower / Bar X upper
These control bar width, baseline and horizontal edges. For variable edges, choose auxiliary IDs from the same source.
Histogram bins / Histogram normalization
For histogram, choose a bin count or auto, then use count for counts, probability for relative frequencies or density for density.
Box whisker IQR / Show box outliers
For box_whisker, the default IQR multiplier of 1.5 controls whisker length. Use 0 to hide outliers or 1 to show them.
X / Y error mode and auxiliary variables
Use none to omit error bars. symmetric uses one error magnitude, and asymmetric requires lower and upper bounds. For a band use Band lower and Band upper, and choose whether to show the center trace with Draw center series with band.

An XAS family retains its original grouping by parameter_value. To compare multiple sources, use separate series and verify that the quantities and units are comparable. A series can display data already processed by another module. Use a dedicated analysis workflow for scientific normalization. The viewer opens and plots the curves.

The selected XAS spectral family row shows the Dataset, canonical variables and line style.
The selected XAS spectral family row shows the Dataset, canonical variables and line style.

Working with variants and copies

Data / Variants → Variants… lists the plot variants. New from base creates an identity from the base plot, Duplicate copies the selected configuration, Edit opens the editor, Render updates the output and Delete removes the selected variant. variant editor also lets you select individual members. Creating or duplicating assigns an ID immediately. Closing the editor leaves the created variant in the Session.

Graph → Clone… creates a separate copy from the variant output. Edit clone… opens the available controls for the copy. You can export a rendered-only copy. A scientific copy retains the elements needed to edit its presentation. Graph → Delete… asks for confirmation for the selected plot. Check its identity and type before confirming.

Variants shows plot identities and commands for creating, editing and rendering them.
Variants shows plot identities and commands for creating, editing and rendering them.

Select and publish source rows

Data / Variants → Select data… creates a Dataset from plotted series. Select one or more Series rows with Ctrl or Shift. Click point in graph associates the nearest point with its source row. Draw area in graph selects an area and searches the full Dataset. Choose Individual points or Graphical area, then draw or click in the Plots preview. Point selection needs a series on the left axis with calibrated units. If a click finds no nearby curve, try closer to the trace. Keep selected keeps the identified rows and Exclude selected keeps the rest. Enter a New Dataset ID and publish with Create Dataset. Save Selection retains an ID such as sel_002 for Dataset Extract. Clear picked points clears the points and Close closes the tools.

Select area / Clear area on the Data / Variants tab controls the plot region. After marking an area, use Fit area in Open PNG. Publish a region explicitly to give its data a Dataset identity.

Select graph data separates selection of the series, selection mode and destination ID.
Select graph data separates selection of the series, selection mode and destination ID.
Selecting a source row created sel_002, which Dataset Extract can reuse.
Selecting a source row created sel_002, which Dataset Extract can reuse.

Notes, save and export

Graph → Notes… keeps the variant’s text annotations in Markdown. The editor offers Undo, Redo, Wrap, H1–H3, Italic, Bold, Inline code, Code block and Color…. Use Refresh preview to preview, Save to save and Close to exit.

In Import / Export, Export… exports selected outputs and Export annotated… exports the combined view. Export Graph ZIP… prepares the plot package and Import Graph ZIP… imports it into the Session. Export conf… and Import conf… transfer the configuration. To export PNGs, use Export… and choose a writable folder. The test created the analysis folder structure containing the plots. For both tested XAS plots, Export Graph ZIP… stopped in Graph ZIP export failed because the scientific copy contained an unsupported resource. Use PNG export for images and the Session Dataset for data. Before closing, use Sessions → Session → Save configuration. In the measured-file test, skipping this save restored the Dataset but left the variant absent from the list. After saving and restarting, the examples restored the identity, curves and annotation. Reopen the same Session and select the plot in Plots.

The two-member variant reopened from the saved Session after GX-TXT was closed and restarted.
The two-member variant reopened from the saved Session after GX-TXT was closed and restarted.