Skip to content

Commit 6801b0f

Browse files
committed
Fix: Plot refresh after "Remove all" action
1 parent 91fbc20 commit 6801b0f

File tree

3 files changed

+24
-1
lines changed

3 files changed

+24
-1
lines changed

datalab/gui/plothandler.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,7 @@ def clear(self) -> None:
162162
self.__merged_result_adapters = {}
163163
self.cleanup_dataview()
164164
self.remove_all_shape_items()
165+
self.plot.replot()
165166

166167
def add_shapes(self, oid: str, do_autoscale: bool = False) -> None:
167168
"""Add geometric shape items associated to computed results and annotations,

doc/locale/fr/LC_MESSAGES/release_notes/release_1.00.po

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ msgid ""
77
msgstr ""
88
"Project-Id-Version: DataLab \n"
99
"Report-Msgid-Bugs-To: \n"
10-
"POT-Creation-Date: 2025-12-13 17:07+0100\n"
10+
"POT-Creation-Date: 2025-12-13 17:28+0100\n"
1111
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
1212
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
1313
"Language: fr\n"
@@ -27,6 +27,21 @@ msgstr ""
2727
msgid "🛠️ Bug Fixes since version 1.0.2"
2828
msgstr "🛠️ Correctifs depuis la version 1.0.2"
2929

30+
msgid "**Plot refresh - ROIs and annotations persist after \"Remove all\":**"
31+
msgstr "**Rafraîchissement du graphique - Les ROI et annotations persistent après \"Tout supprimer\" :**"
32+
33+
msgid "Fixed ROIs and annotations occasionally remaining visible after executing \"Remove all\" action from the Edit menu"
34+
msgstr "Correction des ROI et annotations restant occasionnellement visibles après l'exécution de l'action \"Tout supprimer\" depuis le menu Édition"
35+
36+
msgid "The issue occurred because the plot widget wasn't explicitly told to redraw after clearing all plot items and shape items"
37+
msgstr "Le problème est survenu parce que le widget de tracé n'était pas explicitement invité à se redessiner après la suppression de tous les éléments de tracé et des éléments de forme"
38+
39+
msgid "The plot now correctly refreshes its display after clearing all objects, ensuring a clean view without requiring panel switching"
40+
msgstr "Le graphique se rafraîchit désormais correctement après la suppression de tous les objets, garantissant une vue propre sans nécessiter de changement de panneau"
41+
42+
msgid "The bug was intermittent and hard to reproduce systematically, making it appear as if objects were \"stuck\" on the plot"
43+
msgstr "Le bug était intermittent et difficile à reproduire systématiquement, donnant l'impression que les objets étaient \"coincés\" sur le graphique"
44+
3045
msgid "**Result labels - False \"omitted\" message for single-row results:**"
3146
msgstr "**Étiquettes de résultats - Faux message \"omis\" pour les résultats à une seule ligne :**"
3247

doc/release_notes/release_1.00.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,13 @@
44

55
### 🛠️ Bug Fixes since version 1.0.2 ###
66

7+
**Plot refresh - ROIs and annotations persist after "Remove all":**
8+
9+
* Fixed ROIs and annotations occasionally remaining visible after executing "Remove all" action from the Edit menu
10+
* The issue occurred because the plot widget wasn't explicitly told to redraw after clearing all plot items and shape items
11+
* The plot now correctly refreshes its display after clearing all objects, ensuring a clean view without requiring panel switching
12+
* The bug was intermittent and hard to reproduce systematically, making it appear as if objects were "stuck" on the plot
13+
714
**Result labels - False "omitted" message for single-row results:**
815

916
* Fixed result labels (e.g., pulse features) incorrectly showing "X more rows omitted" message when displaying single-row results with no actual truncation

0 commit comments

Comments
 (0)