Spectrum Widget

A widget that 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 user has the ability to:

  • Select the Device and Spectrum Attribute: Choose the specific device and its corresponding spectrum attribute to visualize in the plot.

  • Show Y value at index: Configure which index of the spectrum data to use for the Y-axis. Leave empty to use the normal index increment.

  • Show X value at 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.

  • Attribute Display: Choose how the attribute is displayed in the title—either by its name or its label. The label is shown by default.

  • Show Title: Display the title of the plot, which can include the device and attribute information.

  • Show Tango Database Name: Toggle the display of the Tango database name alongside the device information in the plot title.

  • 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: Toggle to apply a logarithmic scale to the X-axis.

  • Y-axis Logarithmic Scale: Toggle 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: Select the color for the line.

  • Text Color: Choose the color of the text in the plot.

  • Background Color: Set the background color of the plot area.

IMG1

Widget Design

Once configured, the plotted spectrum will appear as shown in the following image:

IMG2