Changeset 27313b7 in sasview for src/sas/qtgui/DataExplorer.py
- Timestamp:
- Dec 13, 2016 4:28:07 AM (8 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:
- 63974f0
- Parents:
- c4e5400
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/DataExplorer.py
rb4b8589 r27313b7 80 80 self.communicator.fileReadSignal.connect(self.loadFromURL) 81 81 self.communicator.activeGraphsSignal.connect(self.updateGraphCombo) 82 self.communicator.activeGraphName.connect(self.updatePlotName) 82 83 self.cbgraph.editTextChanged.connect(self.enableGraphCombo) 83 84 self.cbgraph.currentIndexChanged.connect(self.enableGraphCombo) … … 368 369 return new_item 369 370 371 def updatePlotName(self, name_tuple): 372 """ 373 Modify the name of the current plot 374 """ 375 old_name, current_name = name_tuple 376 ind = self.cbgraph.findText(old_name) 377 self.cbgraph.setCurrentIndex(ind) 378 self.cbgraph.setItemText(ind, current_name) 379 370 380 def updateGraphCombo(self, graph_list): 371 381 """ … … 437 447 """ 438 448 Add data set(s) to the existing matplotlib chart 439 440 TODO: Add 2D-functionality441 449 """ 442 450 # new plot data … … 444 452 445 453 # old plot data 446 plot_id = self.cbgraph.currentText() 447 plot_id = int(plot_id[5:]) 454 plot_id = self.cbgraph.currentIndex() + 1 448 455 449 456 assert plot_id in PlotHelper.currentPlots(), "No such plot: Graph%s"%str(plot_id)
Note: See TracChangeset
for help on using the changeset viewer.