Spectrum
The widget allows plotting spectrum data using Plotly, providing a configurable visualization of a spectrum attribute.
The widget shows a spectrum plot based on selected indices from the spectrum attribute, with options to configure both X and Y axes independently.
Widget Settings
The following image shows an example of a widget setting.

It is possible to customize the widget settings from the inspector panel (in edit mode), as shown below:
Input value |
Description |
|---|---|
Device |
Type in a device name (or * to list all) |
Attribute |
Once a device is selected, type in an attribute name (or * to list all available attributes) |
Y-axis Index |
Configure which index of the spectrum data to use for the Y-axis. Leave empty to use the normal index increment |
X-axis Index |
Configure which index of the spectrum data to use for the X-axis, independently of the Y-axis. Leave empty to default to normal index values |
Time Window |
Defines how much time (in seconds) is shown on the x-axis |
Attribute Display |
Select the Label, Name, or None for the attribute |
Show Title |
Displays the title when enabled |
Show Tango Database Name |
Displays the tango database name when enabled |
X-axis Scientific Notation |
Enable this option to display the X-axis values in scientific notation |
Y-axis Scientific Notation |
Enable this option to display the Y-axis values in scientific notation |
X-axis Logarithmic Scale |
Enable to apply a logarithmic scale to the X-axis |
Y-axis Logarithmic Scale |
Enable to apply a logarithmic scale to the Y-axis |
Inelastic Y Axis |
Adjust the Y-axis to be inelastic, modifying its range to avoid tight bounds on the data points |
Line Color |
Specify the line color for the given widget |
Text Color |
Specify the text color for the given widget |
Background Color |
Specify the background color for the given widget |
Widget Design
Once configured, the plotted spectrum will appear as shown in the following image:
