Ignore:
Timestamp:
Nov 6, 2018 5:17:08 AM (6 years ago)
Author:
Piotr Rozyczko <piotr.rozyczko@…>
Branches:
ESS_GUI, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc
Children:
1942f63
Parents:
a0ad146
Message:

Automatically show sector/annulus/box plots SASVIEW-980

File:
1 edited

Legend:

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

    r722b7d6 rb9ab979  
    9999        self.communicator.extMaskEditorSignal.connect(self.extShowEditDataMask) 
    100100        self.communicator.changeDataExplorerTabSignal.connect(self.changeTabs) 
     101        self.communicator.forcePlotDisplaySignal.connect(self.displayData) 
    101102 
    102103        self.cbgraph.editTextChanged.connect(self.enableGraphCombo) 
     
    636637            # Try the current item 
    637638            main_data = GuiUtils.dataFromItem(plot_item) 
     639        # 1D dependent plots of 2D sets - special treatment 
     640        if isinstance(main_data, Data2D) and isinstance(plot_to_show, Data1D): 
     641            main_data = None 
    638642 
    639643        # Make sure main data for 2D is always displayed 
    640         if main_data and not self.isPlotShown(main_data): 
     644        if main_data is not None and not self.isPlotShown(main_data): 
    641645            if isinstance(main_data, Data2D): 
    642646                self.plotData([(plot_item, main_data)]) 
     
    656660            # Plots with main data points on the same chart 
    657661            # Get the main data plot 
    658             if main_data and not self.isPlotShown(main_data): 
     662            if main_data is not None and not self.isPlotShown(main_data): 
    659663                new_plots.append((plot_item, main_data)) 
    660664            new_plots.append((plot_item, plot_to_show)) 
Note: See TracChangeset for help on using the changeset viewer.