Ignore:
File:
1 edited

Legend:

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

    r8548d739 ref01be4  
    410410                raise AttributeError, msg 
    411411 
    412  
    413412        if plots and \ 
    414413           hasattr(new_plot, 'data') and \ 
     
    765764        data = GuiUtils.dataFromItem(model_item) 
    766765 
    767         dimension = 1 if isinstance(data, Data1D) else 2 
     766        method_name = 'Plotter' 
     767        if isinstance(data, Data2D): 
     768            method_name='Plotter2D' 
    768769 
    769770        # TODO: Replace this with the proper MaskPlotPanel from plottools 
    770         new_plot = Plotter(self) 
    771         new_plot.data(data) 
     771        new_plot = globals()[method_name](self, quickplot=True) 
     772        new_plot.data = data 
    772773        new_plot.plot(marker='o', linestyle='') 
    773774 
Note: See TracChangeset for help on using the changeset viewer.