DataLab-Platform / DataLab

Open-source Platform for Scientific and Technical Data Processing and Visualization
https://datalab-platform.com
BSD 3-Clause "New" or "Revised" License
43 stars 4 forks source link

Plotting results: support for two use cases #80

Closed PierreRaybaut closed 4 months ago

PierreRaybaut commented 4 months ago

The features of the "Computing" menu produce "results" (scalars): blob detection (circle coordinates), 2D peak detection (point coordinates). Depending on the feature, result table may consist of a single line (e.g., centroid of an image or FWHM of a signal) or multiple lines (e.g., blob detection for an image).

Currently, the "Plot results" feature only support plotting the first line of each result table as a function of the index (of the signal/image objects) or any of the columns of the result table.

The goal of this Issue is to add support for two use cases:

  1. Plotting one curve per title attribute, if each selected object contains a result object with a single value (e.g. from a FHWM feature) - in that case, we select only the first value of each result object (this is the current implementation).
  2. Plotting one curve per object (signal/image) and per title attribute, if each selected object contains a result object with multiple values (e.g. from a blob detection feature) - this is the new feature.

For this, we add a new parameter "Plot kind" to the "Plot results" parameter dialog box: image

This parameter may take two values: