Ignore:
Timestamp:
Feb 12, 2009 2:09:16 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:
ef8b580
Parents:
31e3298
Message:

allow annulus to plot no matter the order of the circle
boxslicer draw given data boundaries

File:
1 edited

Legend:

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

    r30ae3bb r3b909b7  
    3030        self.qmax = self.base.data2D.xmax 
    3131        self.connect = self.base.connect 
    32         self.x= x_max 
    33         self.y= y_max 
    34                  
     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          
    3535        self.theta2= math.pi/3 
    3636        ## Number of points on the plot 
Note: See TracChangeset for help on using the changeset viewer.