Changeset 9290b1a in sasview for src/sas/qtgui/DataExplorer.py


Ignore:
Timestamp:
Dec 16, 2016 12:43:18 PM (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:
d3ca363
Parents:
0ba0774
Message:

Added AddText? to plot, enabled legend drag - SASVIEW-378

File:
1 edited

Legend:

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

    r0ba0774 r9290b1a  
    401401        new_plot = Plotter(self) 
    402402 
    403         def addDataPlot(plot, plot_set): 
    404             plot.data = plot_set 
    405             plot.plot() 
    406  
    407403        def addDataPlot2D(plot_set): 
    408404            plot2D = Plotter2D(self) 
    409             addDataPlot(plot2D, plot_set) 
     405            plot2D.plot(plot_set) 
    410406            self.plotAdd(plot2D) 
    411407 
    412408        for plot_set in plots: 
    413409            if isinstance(plot_set, Data1D): 
    414                 addDataPlot(new_plot, plot_set) 
     410                new_plot.plot(plot_set) 
    415411            elif isinstance(plot_set, Data2D): 
    416412                addDataPlot2D(plot_set) 
     
    418414                msg = "Incorrect data type passed to Plotting" 
    419415                raise AttributeError, msg 
    420  
    421416 
    422417        if plots and \ 
Note: See TracChangeset for help on using the changeset viewer.