#33: Data Analysis Dialog with Plot Fitting options.

The Data Analysis Dialog is a feature in KaraboGUI that allows users to perform data analysis - mainly plot fitting - on the data displayed on the plotting widget. The dialog provides options to fit the data with different functions and plot the fitted data.

The VectorGraph plot widgets in Karabo have a tool button that allows users to access the Data Analysis Dialog.

ToolButton

Key Features of the Data Analysis Dialog

Data Analysis Dialog
  1. The dialog allows to fit the data with the following functions:
    1. Gaussian

    2. Sech Squared

    3. Step Function (CDF)

    4. Linear

  2. “Fit Button”: To trigger the fitting function and draw the fitting curve.

  3. “Update Data Button”: To fetch the current data from the device property. To perform the fitting, the “Fit” button shall be triggered, after updating the data.

  4. Property Selector Combobox: This widget allows to select the property when the plotting widget has data from multiple properties. This widget is visible only when the plotting widget has data from multiple properties.

  5. “Fit on update” toggle: This triggers the fitting function automatically when the data is updated.

  6. “Auto update”: To automatically update the data from the device property.

  7. Fitting Function Result.

    Plot Fitting Selected Area

    Plot Fitting using the data from selected range.

  8. Plot area. The data is plotted in blue and the fitted data is plotted in red.

  9. “Fit Data From Selection”: This toolbar button allows the user to select the data range for fitting. Two vertical lines that appear on the plot can be dragged to select the data range.

  10. Data Range: The range of data selected for fitting. This is shown only when the fitting is done on the selected data range.