Skip to content

Signal title extracted from image profiles does not update when signal title is renamed #323

@ThomasMalletCodra

Description

@ThomasMalletCodra

Describe the bug

When extracting intensity profiles from images, the resulting signals are created with auto-generated names (e.g., average profile(i001)|horizontal rows col). The plot legend displays these same names. However, if the user renames the signals to something more meaningful, the legend does not update and continues to show the original auto-generated name. This makes it difficult to distinguish signals when multiple profiles are displayed simultaneously.

To Reproduce

  1. Open an image in DataLab
  2. Extract several intensity profiles via Analysis > Intensity profiles > Average profile...
  3. Observe the created signals in the Signal panel with auto-generated names (e.g., average profile(i001)|horizontal rows col, average profile(i002)|horizontal rows col, etc.)
  4. Rename one or more signals to custom, meaningful names
  5. Display multiple signals on the same plot

Result: The legend still shows the original auto-generated names (average profile(i001)|...) instead of the updated signal names.

Expected behavior

The plot legend should always reflect the current signal title. When a signal is renamed, the legend entry should update accordingly.

Screenshots

No screenshots provided.

Installation information

  • Reported by external user
  • Observed on standard DataLab installation

Additional context

  • Affected component: DataLab — likely in the plot handler or PlotPy adapter layer that maps SignalObj.title to the QwtPlotCurve legend label. The curve's legend title may be set once at creation time and never synchronized when the object title changes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions