Changeset 5554566 in sasview


Ignore:
Timestamp:
Dec 18, 2008 8:56:58 PM (16 years ago)
Author:
Gervaise Alina <gervyh@…>
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
Message:

annulus added

File:
1 edited

Legend:

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

    ref0c170 r5554566  
    9999        self.outer_circle.save(ev) 
    100100 
    101     def _post_data(self): 
     101    def _post_data(self,nbins=None): 
    102102         # Compute data 
    103103        data = self.base.data2D 
     
    108108        from DataLoader.manipulations import SectorPhi 
    109109        radius = math.sqrt(math.pow(self.qmax,2)+math.pow(self.qmax,2)) 
    110         phimin = self.right_line.theta 
    111         phimax = self.left_line.theta 
    112         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) 
    113113        if nbins!=None: 
    114114            sect.nbins = nbins 
     
    187187        self.inner_circle.set_cursor(inner, self.inner_circle._inner_mouse_y) 
    188188        self.outer_circle.set_cursor(outer, self.outer_circle._inner_mouse_y) 
    189         self._post_data() 
     189        self._post_data(self.nbins) 
    190190         
    191191    def freeze_axes(self): 
Note: See TracChangeset for help on using the changeset viewer.