Changeset 5554566 in sasview
- Timestamp:
- Dec 18, 2008 8:56:58 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:
- 38224f10
- Parents:
- f2eee4a
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
guiframe/local_perspectives/plotting/AnnulusSlicer.py
ref0c170 r5554566 99 99 self.outer_circle.save(ev) 100 100 101 def _post_data(self ):101 def _post_data(self,nbins=None): 102 102 # Compute data 103 103 data = self.base.data2D … … 108 108 from DataLoader.manipulations import SectorPhi 109 109 radius = math.sqrt(math.pow(self.qmax,2)+math.pow(self.qmax,2)) 110 phimin = self.right_line.theta111 phimax = self.left_line.theta112 sect = SectorPhi(r_min= -1*radius , r_max= radius , phi_min=phimin, phi_max=phimax)110 rmin= self.inner_circle.get_radius() 111 rmax = self.outer_circle.get_radius() 112 sect = SectorPhi(r_min=rmin , r_max= rmax, phi_min=-1*math.pi, phi_max=math.pi) 113 113 if nbins!=None: 114 114 sect.nbins = nbins … … 187 187 self.inner_circle.set_cursor(inner, self.inner_circle._inner_mouse_y) 188 188 self.outer_circle.set_cursor(outer, self.outer_circle._inner_mouse_y) 189 self._post_data( )189 self._post_data(self.nbins) 190 190 191 191 def freeze_axes(self):
Note: See TracChangeset
for help on using the changeset viewer.