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
- Open an image in DataLab
- Extract several intensity profiles via Analysis > Intensity profiles > Average profile...
- 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.)
- Rename one or more signals to custom, meaningful names
- 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.
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
average profile(i001)|horizontal rows col,average profile(i002)|horizontal rows col, etc.)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
Additional context
SignalObj.titleto theQwtPlotCurvelegend label. The curve's legend title may be set once at creation time and never synchronized when the object title changes.