Changeset fbd0bece in sasview


Ignore:
Timestamp:
Jan 21, 2009 9:13:34 AM (16 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:
b2c6d23
Parents:
f55af70
Message:

qmax redefined for sector

File:
1 edited

Legend:

Unmodified
Added
Removed
  • guiframe/local_perspectives/plotting/SectorSlicer.py

    rffd23b5 rfbd0bece  
    2626        _BaseInteractor.__init__(self, base, axes, color=color) 
    2727        self.markers = [] 
    28         self.axes = axes 
    29         self.qmax = math.sqrt((max(self.base.data2D.xmax,abs(self.base.data2D.xmin)))**2+(max(self.base.data2D.xmax,abs(self.base.data2D.xmin)))**2) 
    30         print "sector qmax", self.qmax 
     28        self.axes = axes         
     29        self.qmax = math.sqrt(math.pow(max(self.base.data2D.xmax,abs(self.base.data2D.xmin)),2)+math.pow(max(self.base.data2D.xmax,abs(self.base.data2D.xmin)),2)) 
     30        #print "sector qmax", self.qmax 
    3131        self.connect = self.base.connect 
    3232         
     
    178178        #new_plot.info=self.base.data2D.info 
    179179        new_plot.interactive = True 
    180         #print "loader output.detector",output.source 
     180        #print "loader output.detector",self.base.data2D.info,output.source, 
    181181        new_plot.detector =self.base.data2D.detector 
     182        #print "loader output.detector",new_plot.detector 
    182183        # If the data file does not tell us what the axes are, just assume... 
    183184        new_plot.xaxis("\\rm{Q}", 'A^{-1}') 
    184185        new_plot.yaxis("\\rm{Intensity} ","cm^{-1}") 
    185186        new_plot.group_id = "SectorQ"+self.base.data2D.name 
    186         new_plot.xtransform = "ln(x)" 
    187187        wx.PostEvent(self.base.parent, NewPlotEvent(plot=new_plot, 
    188                                                  title="SectorQ" )) 
     188                                                 title="SectorQ"+self.base.data2D.name )) 
    189189         
    190190          
Note: See TracChangeset for help on using the changeset viewer.