Skip to main content

ScanPlot1d

<PropTable>: Couldn't find prop definition for `ScanPlot1dOptions`

The ScanPlot1d component plots 1d (spectral) data for the currently selected scan

A backend option is supported. For now the default is plotly, but can be switched into h5web.

Preselecting axes and series

Axis and series can be preselected by passing the following options from the layout:

- type: component
title: Spectrum Plot
component: scanplot1d
options:
preSelectedXAxis: simu1:spectrum_det0
preSelectedSeries: simu1:spectrum_det1

Will render:

Pre-selecting an X axis allows two spectra to be plotted against each other. preSelectedSeries can also be an array to allow plotting of multiple spectra simultanously.