You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When pressing the "Send to Data Explorer" button on a 1D slicer plot for a brand new slicer, a single entry is added to the Data Explorer. However, when the slicer parameters are modified and the button is pressed again, additional entries are added to the Data Explorer. There are three entries after the first modification, five entries after the second modification and so on.
There are two causes of this:
As identified by @krzywon in Restricts custom plot button to send to data explorer #3828 for residual plots, two identical objects are sent to the data explorer. This occurs when a plot is replaced rather than created, and results from a call to the replacePlot routine in slicerUtils._update_existing_plot(), aklongside emitting a signal that ultimately calls replacePlot a second time.
In Ess gui plotting issues #1371, @rozyczko changed two lines in Plotter.plot() from self.data = data to self.data.append(data). Can you confirm why this changed was made please? Depending on the reasoning, we could either ensure only one dataset per slicer is stored in the list, or change the behaviour of the "Send to Data Explorer" button to only take selected datasets from the list.
Once I am clear on the need for storing multiple datasets for each slicer as it is modified, I will work on a fix.
When pressing the "Send to Data Explorer" button on a 1D slicer plot for a brand new slicer, a single entry is added to the Data Explorer. However, when the slicer parameters are modified and the button is pressed again, additional entries are added to the Data Explorer. There are three entries after the first modification, five entries after the second modification and so on.
There are two causes of this:
As identified by @krzywon in Restricts custom plot button to send to data explorer #3828 for residual plots, two identical objects are sent to the data explorer. This occurs when a plot is replaced rather than created, and results from a call to the
replacePlotroutine inslicerUtils._update_existing_plot(), aklongside emitting a signal that ultimately callsreplacePlota second time.In Ess gui plotting issues #1371, @rozyczko changed two lines in
Plotter.plot()fromself.data = datatoself.data.append(data). Can you confirm why this changed was made please? Depending on the reasoning, we could either ensure only one dataset per slicer is stored in the list, or change the behaviour of the "Send to Data Explorer" button to only take selected datasets from the list.Once I am clear on the need for storing multiple datasets for each slicer as it is modified, I will work on a fix.