Changeset 3b909b7 in sasview for guiframe/local_perspectives/plotting
- Timestamp:
- Feb 12, 2009 2:09:16 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:
- ef8b580
- Parents:
- 31e3298
- Location:
- guiframe/local_perspectives/plotting
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
guiframe/local_perspectives/plotting/AnnulusSlicer.py
r0bd125d r3b909b7 117 117 118 118 from DataLoader.manipulations import SectorPhi 119 radius = self.qmax#math.sqrt(math.pow(self.qmax,2)+math.pow(self.qmax,2))120 rmin= m ath.fabs(self.inner_circle.get_radius())121 rmax = math.fabs(self.outer_circle.get_radius())122 phi_min=-math.pi123 phi_max=math.pi124 p himi=phi_min+math.pi125 phima=phi_max+math.pi126 sect = SectorPhi(r_min=rmin , r_max= rmax, phi_min= phimi, phi_max=phima)119 #radius = self.qmax#math.sqrt(math.pow(self.qmax,2)+math.pow(self.qmax,2)) 120 rmin= min(math.fabs(self.inner_circle.get_radius()), 121 math.fabs(self.outer_circle.get_radius())) 122 rmax = max(math.fabs(self.inner_circle.get_radius()), 123 math.fabs(self.outer_circle.get_radius())) 124 print "rmin, rmax", rmin, rmax 125 126 sect = SectorPhi(r_min=rmin , r_max= rmax, phi_min=0, phi_max=2*math.pi) 127 127 if nbins!=None: 128 128 sect.nbins = nbins -
guiframe/local_perspectives/plotting/boxSlicer.py
r30ae3bb r3b909b7 30 30 self.qmax = self.base.data2D.xmax 31 31 self.connect = self.base.connect 32 self.x= x_max33 self.y= y_max34 32 self.x= 0.5*min(math.fabs(self.base.data2D.xmax),math.fabs( self.base.data2D.xmin)) 33 self.y= 0.5*min(math.fabs(self.base.data2D.xmax),math.fabs( self.base.data2D.xmin)) 34 35 35 self.theta2= math.pi/3 36 36 ## Number of points on the plot -
guiframe/local_perspectives/plotting/boxSum.py
r0bd2cd8 r3b909b7 156 156 y_min= self.vertical_lines.y2 157 157 y_max= self.vertical_lines.y1 158 print "xmin, xmax, ymin , ymax", x_min, x_max, y_min, y_max 158 159 box = Boxavg (x_min=x_min, x_max=x_max, y_min=y_min, y_max=y_max) 159 160 self.count, self.error = box(self.base.data2D) 160 #print "count, error",self.count, self.error161 print "box_sum output",box(self.base.data2D) 161 162 162 163 def moveend(self, ev):
Note: See TracChangeset
for help on using the changeset viewer.