Changeset b783024 in sasview
- Timestamp:
- Jan 13, 2009 1:21:28 PM (16 years ago)
- 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
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
guiframe/local_perspectives/plotting/SectorSlicer.py
re23a20c rb783024 31 31 32 32 ## Number of points on the plot 33 self.nbins = 3033 self.nbins = 20 34 34 self.theta1= math.pi/4 35 35 self.theta2= math.pi/3 … … 39 39 self.main_line = LineInteractor(self, self.base.subplot,color='green', zorder=zorder, r=self.qmax, 40 40 theta= self.theta2) 41 self.main_line.qmax = math.sqrt(2)*self.base.qmax41 self.main_line.qmax = self.base.qmax 42 42 #self.left_line = SectionInteractor(self, self.base.subplot, zorder=zorder+1, r=self.qmax, 43 43 # theta1= self.theta1, theta2= self.theta2) … … 47 47 phi= -1*self.phi, 48 48 theta2=self.theta2) 49 self.right_line.qmax = math.sqrt(2)*self.base.qmax49 self.right_line.qmax = self.base.qmax 50 50 self.left_line= SideInteractor(self, self.base.subplot,color='blue', zorder=zorder, 51 51 r=self.qmax, 52 52 phi= self.phi, 53 53 theta2=self.theta2) 54 self.left_line.qmax = math.sqrt(2)*self.base.qmax54 self.left_line.qmax = self.base.qmax 55 55 #self.outer_circle.set_cursor(self.base.qmax/1.8, 0) 56 56 … … 148 148 name = "Sector " 149 149 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)) 151 151 phimin = self.right_line.theta+math.pi 152 152 phimax = self.left_line.theta+math.pi 153 153 154 sect = SectorQ(r_min=0.0 00001, 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) 155 155 #sect = SectorQ(r_min=-1*radius , r_max= radius , phi_min=phimin, phi_max=phimax) 156 156 if nbins!=None:
Note: See TracChangeset
for help on using the changeset viewer.