From 286d44ed0596a906cbd710cc08762c82fe547be2 Mon Sep 17 00:00:00 2001 From: rozyczko Date: Wed, 19 Jul 2023 16:42:29 +0200 Subject: [PATCH] call the widget directly. --- src/sas/qtgui/MainWindow/DataExplorer.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/sas/qtgui/MainWindow/DataExplorer.py b/src/sas/qtgui/MainWindow/DataExplorer.py index d0ebdddf54..72d5146735 100644 --- a/src/sas/qtgui/MainWindow/DataExplorer.py +++ b/src/sas/qtgui/MainWindow/DataExplorer.py @@ -22,8 +22,8 @@ from sas.qtgui.Plotting.PlotterData import Data1D from sas.qtgui.Plotting.PlotterData import Data2D from sas.qtgui.Plotting.PlotterData import DataRole -from sas.qtgui.Plotting.Plotter import Plotter -from sas.qtgui.Plotting.Plotter2D import Plotter2D +from sas.qtgui.Plotting.Plotter import Plotter, PlotterWidget +from sas.qtgui.Plotting.Plotter2D import Plotter2D, Plotter2DWidget from sas.qtgui.Plotting.MaskEditor import MaskEditor from sas.qtgui.MainWindow.DataManager import DataManager @@ -1132,7 +1132,7 @@ def addDataPlot2D(self, plot_set, item): """ Create a new 2D plot and add it to the workspace """ - plot2D = Plotter2D(self) + plot2D = Plotter2DWidget(parent=self, manager=self) plot2D.item = item plot2D.plot(plot_set) self.addPlot(plot2D) @@ -1160,7 +1160,7 @@ def plotData(self, plots, transform=True): for item, plot_set in plots: if isinstance(plot_set, Data1D): if 'new_plot' not in locals(): - new_plot = Plotter(self) + new_plot = PlotterWidget(manager=self, parent=self) new_plot.item = item new_plot.plot(plot_set, transform=transform) # active_plots may contain multiple charts