Changeset c7f259d in sasview for src/sas/qtgui


Ignore:
Timestamp:
Aug 13, 2018 5:17:25 AM (6 years ago)
Author:
Torin Cooper-Bennun <torin.cooper-bennun@…>
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:
8dd7b79
Parents:
685e0e3
Message:

implement append-to-plot functionality for the Theory view

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/qtgui/MainWindow/DataExplorer.py

    r685e0e3 rc7f259d  
    7171        self.cmdNew_2.clicked.connect(self.newPlot) 
    7272        self.cmdAppend.clicked.connect(self.appendPlot) 
     73        self.cmdAppend_2.clicked.connect(self.appendPlot) 
    7374        self.cmdHelp.clicked.connect(self.displayHelp) 
    7475        self.cmdHelp_2.clicked.connect(self.displayHelp) 
     
    632633        Add data set(s) to the existing matplotlib chart 
    633634        """ 
    634         # new plot data 
    635         new_plots = GuiUtils.plotsFromCheckedItems(self.model) 
     635        # new plot data; check which tab is currently active 
     636        if self.current_view == self.treeView: 
     637            new_plots = GuiUtils.plotsFromCheckedItems(self.model) 
     638        else: 
     639            new_plots = GuiUtils.plotsFromCheckedItems(self.theory_model) 
    636640 
    637641        # old plot data 
Note: See TracChangeset for help on using the changeset viewer.