Changeset 7d077d1 in sasview for src/sas/qtgui/DataExplorer.py
- Timestamp:
- Mar 31, 2017 3:29:50 AM (7 years ago)
- Branches:
- ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc
- Children:
- 0274aea
- Parents:
- 0268aed
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/DataExplorer.py
r0268aed r7d077d1 49 49 50 50 # Active plots 51 self.active_plots = []51 self.active_plots = {} 52 52 53 53 # Connect the buttons … … 87 87 self.communicator.activeGraphsSignal.connect(self.updateGraphCombo) 88 88 self.communicator.activeGraphName.connect(self.updatePlotName) 89 self.communicator.plotUpdateSignal.connect(self.updatePlot) 89 90 self.cbgraph.editTextChanged.connect(self.enableGraphCombo) 90 91 self.cbgraph.currentIndexChanged.connect(self.enableGraphCombo) … … 473 474 474 475 # Update the active chart list 475 self.active_plots.append(title) 476 self.active_plots[new_plot.data.id] = new_plot 477 print "ADDING ", new_plot.data.id 476 478 477 479 def appendPlot(self): … … 494 496 old_plot.data = plot_set 495 497 old_plot.plot() 498 499 def updatePlot(self, new_data): 500 """ 501 Modify existing plot for immediate response 502 """ 503 data = new_data[0] 504 assert type(data).__name__ in ['Data1D', 'Data2D'] 505 506 id = data.id 507 if data.id in self.active_plots.keys(): 508 self.active_plots[id].replacePlot(id, data) 496 509 497 510 def chooseFiles(self): … … 940 953 # Reset the view 941 954 self.model.reset() 942 943 955 # Pass acting as a debugger anchor 944 956 pass
Note: See TracChangeset
for help on using the changeset viewer.