Changeset 8817d07 in sasview for src/sans/plottools


Ignore:
Timestamp:
Apr 1, 2014 12:40:50 PM (11 years ago)
Author:
ajj
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:
eddb6ec
Parents:
3ee654e
Message:

Adding Kratky plot (Ticket #205)

Location:
src/sans/plottools
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • src/sans/plottools/PlotPanel.py

    rb9f6d83 r8817d07  
    18971897                self.graph._yaxis_transformed("%s \ \ %s^{4}" % (yname, xname), 
    18981898                                               "%s%s" % (yunits, xunits)) 
     1899            if(self.viewModel == "Kratky y*x^(2) vs x"): 
     1900                item.transformY(transform.toYX2, transform.errToYX2) 
     1901                self.graph._yaxis_transformed("%s \ \ %s^{2}" % (yname, xname), 
     1902                                               "%s%s" % (yunits, xunits))                 
     1903                 
    18991904            item.transformView() 
    19001905   
  • src/sans/plottools/PropertyDialog.py

    ra9d5684 r8817d07  
    8181        self.view.Insert("XS Guinier ln(y*x) vs x^(2)", 3) 
    8282        self.view.Insert("Porod y*x^(4) vs x^(4)", 4) 
     83        self.view.Insert("Kratky y*x^(2) vs x",5)         
    8384        self.SetSizer(vbox) 
    8485        self.Fit() 
  • src/sans/plottools/transform.py

    ra9d5684 r8817d07  
    135135    return math.pow(x, 4) * y 
    136136 
     137def toYX2(y, x): 
     138    """ 
     139    """ 
     140    return math.pow(x, 2) * y 
    137141 
    138142def toLogXY(y, x): 
Note: See TracChangeset for help on using the changeset viewer.