Changeset 14d9c7b in sasview for src/sas/qtgui/DataExplorer.py


Ignore:
Timestamp:
Nov 23, 2016 4:21:03 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:
31c5b58
Parents:
49e124c
Message:

2D plotter cleanup

File:
1 edited

Legend:

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

    r49e124c r14d9c7b  
    388388        """ 
    389389        Create a new matplotlib chart from selected data 
    390  
    391         TODO: Add 2D-functionality 
    392390        """ 
    393391        plots = GuiUtils.plotsFromCheckedItems(self.model) 
     
    437435        old_plot = PlotHelper.plotById(plot_id) 
    438436 
    439         # Add new data to the old plot 
     437        # Add new data to the old plot, if data type is the same. 
    440438        for plot_set in new_plots: 
    441             old_plot.data(plot_set) 
    442             old_plot.plot() 
     439            if type(plot_set) is type(old_plot._data): 
     440                old_plot.data(plot_set) 
     441                old_plot.plot() 
    443442 
    444443    def chooseFiles(self): 
Note: See TracChangeset for help on using the changeset viewer.