Changeset b4da6df in sasview for plottools/src


Ignore:
Timestamp:
Jan 25, 2012 4:15:38 PM (13 years ago)
Author:
Jae Cho <jhjcho@…>
Branches:
master, 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, costrafo411, magnetic_scatt, release-4.1.1, release-4.1.2, release-4.2.2, release_4.0.1, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
Children:
b5b2e5b
Parents:
d2843a9
Message:

Added porod plot scales shortcut

Location:
plottools/src/danse/common/plottools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • plottools/src/danse/common/plottools/PlotPanel.py

    r52e0f2d rb4da6df  
    739739                        self.xLabel = "x^(2)" 
    740740                        self.yLabel = "ln(y)" 
     741                        self.viewModel = "--" 
     742                        dial.setValues(self.xLabel, self.yLabel, self.viewModel) 
     743                    if self.viewModel == "Porod y*x^(4) vs x^(4)": 
     744                        self.xLabel = "x^(4)" 
     745                        self.yLabel = "y*x^(4)" 
    741746                        self.viewModel = "--" 
    742747                        dial.setValues(self.xLabel, self.yLabel, self.viewModel) 
     
    18541859                item.transformY(transform.toLogX,transform.errToLogX ) 
    18551860                self.graph._yaxis_transformed("\ln\ \ %s" % yname,  "%s" % yunits) 
     1861            if(self.viewModel == "Porod y*x^(4) vs x^(4)"): 
     1862                item.transformX(transform.toX4, transform.errToX4) 
     1863                xunits = convertUnit(4, self.xaxis_unit)  
     1864                self.graph._xaxis_transformed("%s^{4}" % xname, "%s" % xunits) 
     1865                item.transformY(transform.toYX4, transform.errToYX4) 
     1866                self.graph._yaxis_transformed("%s \ \ %s^{4}" % (yname,xname),  
     1867                                               "%s%s" % (yunits,xunits)) 
    18561868            item.transformView() 
    18571869   
  • plottools/src/danse/common/plottools/PropertyDialog.py

    r8d27cac rb4da6df  
    8181        self.view.Insert("--", 0) 
    8282        self.view.Insert("Guinier lny vs x^(2)", 1) 
     83        self.view.Insert("Porod y*x^(4) vs x^(4)", 2) 
    8384        self.SetSizer(vbox) 
    8485        self.Fit()         
Note: See TracChangeset for help on using the changeset viewer.