Changeset 3bdbfcc in sasview for src/sas/qtgui/DataExplorer.py


Ignore:
Timestamp:
Feb 2, 2017 8:29:07 AM (7 years ago)
Author:
Piotr Rozyczko <rozyczko@…>
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:
965fbd8
Parents:
5d89f43
git-author:
Piotr Rozyczko <rozyczko@…> (01/23/17 09:21:03)
git-committer:
Piotr Rozyczko <rozyczko@…> (02/02/17 08:29:07)
Message:

Reimplementation of the slicer functionality

File:
1 edited

Legend:

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

    r87cc73a r3bdbfcc  
    399399        new_plot = Plotter(self) 
    400400 
    401         def addDataPlot2D(plot_set): 
     401        def addDataPlot2D(plot_set, item): 
    402402            plot2D = Plotter2D(self) 
     403            plot2D.item = item 
    403404            plot2D.plot(plot_set) 
    404405            self.plotAdd(plot2D) 
    405406 
    406         for plot_set in plots: 
     407        for item, plot_set in plots: 
    407408            if isinstance(plot_set, Data1D): 
    408409                new_plot.plot(plot_set) 
    409410            elif isinstance(plot_set, Data2D): 
    410                 addDataPlot2D(plot_set) 
     411                addDataPlot2D(plot_set, item) 
    411412            else: 
    412413                msg = "Incorrect data type passed to Plotting" 
     
    450451 
    451452        # Add new data to the old plot, if data type is the same. 
    452         for plot_set in new_plots: 
     453        for _, plot_set in new_plots: 
    453454            if type(plot_set) is type(old_plot._data): 
    454455                old_plot.data = plot_set 
Note: See TracChangeset for help on using the changeset viewer.