Changeset b783024 in sasview


Ignore:
Timestamp:
Jan 13, 2009 1:21:28 PM (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:
b146d06
Parents:
a5aaec9
Message:

Redefined self.qmax and rmax in SectorSlice?.py to reduce the missing # of points in the averaged 1d plot.

File:
1 edited

Legend:

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

    re23a20c rb783024  
    3131         
    3232        ## Number of points on the plot 
    33         self.nbins = 30 
     33        self.nbins = 20 
    3434        self.theta1= math.pi/4 
    3535        self.theta2= math.pi/3 
     
    3939        self.main_line = LineInteractor(self, self.base.subplot,color='green', zorder=zorder, r=self.qmax, 
    4040                                           theta= self.theta2) 
    41         self.main_line.qmax = math.sqrt(2)*self.base.qmax 
     41        self.main_line.qmax = self.base.qmax 
    4242        #self.left_line = SectionInteractor(self, self.base.subplot, zorder=zorder+1, r=self.qmax, 
    4343        #                                   theta1= self.theta1, theta2= self.theta2) 
     
    4747                                           phi= -1*self.phi, 
    4848                                           theta2=self.theta2) 
    49         self.right_line.qmax = math.sqrt(2)*self.base.qmax 
     49        self.right_line.qmax = self.base.qmax 
    5050        self.left_line= SideInteractor(self, self.base.subplot,color='blue', zorder=zorder, 
    5151                                     r=self.qmax, 
    5252                                           phi= self.phi, 
    5353                                           theta2=self.theta2) 
    54         self.left_line.qmax = math.sqrt(2)*self.base.qmax 
     54        self.left_line.qmax = self.base.qmax 
    5555        #self.outer_circle.set_cursor(self.base.qmax/1.8, 0) 
    5656         
     
    148148        name = "Sector " 
    149149        from DataLoader.manipulations import SectorQ 
    150         radius = math.sqrt(math.pow(self.qmax,2)+math.pow(self.qmax,2)) 
     150        radius = self.qmax #radius=math.sqrt(math.pow(self.qmax,2)+math.pow(self.qmax,2)) 
    151151        phimin = self.right_line.theta+math.pi 
    152152        phimax = self.left_line.theta+math.pi 
    153153 
    154         sect = SectorQ(r_min=0.000001, r_max= radius , phi_min=phimin, phi_max=phimax) 
     154        sect = SectorQ(r_min=0.0, r_max= radius , phi_min=phimin, phi_max=phimax) 
    155155        #sect = SectorQ(r_min=-1*radius , r_max= radius , phi_min=phimin, phi_max=phimax) 
    156156        if nbins!=None: 
Note: See TracChangeset for help on using the changeset viewer.