Changeset a54bbf2b in sasview for src/sas/qtgui/Perspectives


Ignore:
Timestamp:
Sep 11, 2018 10:00:45 AM (6 years ago)
Author:
Piotr Rozyczko <rozyczko@…>
Branches:
ESS_GUI, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc
Children:
2d47985
Parents:
343d7fd
Message:

Added plot roles to Data1D/Data2D structures to allow for smoother plot logic.

Location:
src/sas/qtgui/Perspectives/Fitting
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/sas/qtgui/Perspectives/Fitting/FittingLogic.py

    r61f0c75 ra54bbf2b  
    154154        new_plot.xaxis(_xaxis, _xunit) 
    155155        new_plot.yaxis(_yaxis, _yunit) 
     156 
     157        if component is not None: 
     158            new_plot.plot_role = Data1D.ROLE_DELETABLE #deletable 
    156159 
    157160        return new_plot 
  • src/sas/qtgui/Perspectives/Fitting/FittingWidget.py

    rf3cc979 ra54bbf2b  
    24812481        residuals_plot = FittingUtilities.plotResiduals(self.data, weighted_data) 
    24822482        residuals_plot.id = "Residual " + residuals_plot.id 
     2483        residuals_plot.plot_role = Data1D.ROLE_RESIDUAL 
    24832484        self.createNewIndex(residuals_plot) 
    24842485        return residuals_plot 
Note: See TracChangeset for help on using the changeset viewer.