- Timestamp:
- Sep 8, 2018 6:28:16 AM (6 years ago)
- Branches:
- ESS_GUI, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc
- Children:
- c0de493, 309fa1b
- Parents:
- c4b23dd
- git-author:
- Piotr Rozyczko <rozyczko@…> (09/08/18 06:26:54)
- git-committer:
- Piotr Rozyczko <rozyczko@…> (09/08/18 06:28:16)
- Location:
- src/sas/qtgui
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/MainWindow/DataExplorer.py
r50cafe7 r0cd98a1 598 598 plot2D.plot(plot_set) 599 599 self.addPlot(plot2D) 600 self.active_plots[plot2D.data. id] = plot2D600 self.active_plots[plot2D.data.name] = plot2D 601 601 #============================================ 602 602 # Experimental hook for silx charts … … 626 626 new_plot.plot(plot_set, transform=transform) 627 627 # active_plots may contain multiple charts 628 self.active_plots[plot_set. id] = new_plot628 self.active_plots[plot_set.name] = new_plot 629 629 elif isinstance(plot_set, Data2D): 630 630 self.addDataPlot2D(plot_set, item) … … 697 697 old_plot.plot() 698 698 # need this for lookup - otherwise this plot will never update 699 self.active_plots[plot_set. id] = old_plot699 self.active_plots[plot_set.name] = old_plot 700 700 701 701 def updatePlot(self, data): … … 711 711 712 712 ids_keys = list(self.active_plots.keys()) 713 ids_vals = [val.data. idfor val in self.active_plots.values()]714 715 data_id = data. id713 ids_vals = [val.data.name for val in self.active_plots.values()] 714 715 data_id = data.name 716 716 if data_id in ids_keys: 717 717 self.active_plots[data_id].replacePlot(data_id, data) -
src/sas/qtgui/Perspectives/Fitting/FittingWidget.py
rc4b23dd r0cd98a1 1814 1814 # Force data recalculation so existing charts are updated 1815 1815 self.showPlot() 1816 # This is an important processEvent. 1817 # This allows charts to be properly updated in order 1818 # of plots being applied. 1819 QtWidgets.QApplication.processEvents() 1816 1820 self.recalculatePlotData() 1817 1821 -
src/sas/qtgui/Plotting/Plotter.py
r2a174d4 r0cd98a1 182 182 183 183 # Update the list of data sets (plots) in chart 184 self.plot_dict[self._data. id] = self.data185 186 self.plot_lines[self._data. id] = line184 self.plot_dict[self._data.name] = self.data 185 186 self.plot_lines[self._data.name] = line 187 187 188 188 # Now add the legend with some customizations. … … 201 201 # refresh canvas 202 202 self.canvas.draw() 203 # This is an important processEvent.204 # This allows charts to be properly updated in order205 # of plots being applied.206 QtWidgets.QApplication.processEvents()207 203 208 204 def createContextMenu(self):
Note: See TracChangeset
for help on using the changeset viewer.