Changeset 481c4f4 in sasview


Ignore:
Timestamp:
Oct 26, 2017 5:46:49 AM (7 years ago)
Author:
Adam Washington <adam.washington@…>
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:
e742b63c
Parents:
4aa62c8
Message:

Plot the different Inversion parameters

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/qtgui/Perspectives/PrInversion/dmax.py

    r4aa62c8 r481c4f4  
    8585                           QtGui.QStandardItem( 
    8686                               str(1.1*self.pr_state.d_max))) 
     87        self.model.setItem(W.VARIABLE, 
     88                           QtGui.QStandardItem( "χ²/dof")) 
    8789 
    8890    def setupMapper(self): 
     
    135137        self.pr_state.d_max = original 
    136138 
    137         self.plot.plot(data=Data1D(xs, rg), marker="-") 
     139        plotter = unicode(self.model.item(W.VARIABLE).text()) 
     140        if plotter == u"1-σ positive fraction": 
     141            ys = pos_err 
     142        elif plotter == u"χ²/dof": 
     143            ys = chi2 
     144        elif plotter == u"I(Q=0)": 
     145            ys = iq0 
     146        elif plotter == u"Rg": 
     147            ys = rg 
     148        elif plotter == u"Oscillation parameter": 
     149            ys = osc 
     150        elif plotter == u"Background": 
     151            ys = bck 
     152        elif plotter == u"Positive Fraction": 
     153            ys = pos 
     154 
     155        self.plot.plot(data=Data1D(xs, ys), marker="-") 
    138156 
    139157 
Note: See TracChangeset for help on using the changeset viewer.