Changeset 9b05b2f in sasview


Ignore:
Timestamp:
Jan 9, 2009 5:25:48 PM (15 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:
4b91fd1
Parents:
dd40217
Message:

working on box sum

File:
1 edited

Legend:

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

    r78ed1ad r9b05b2f  
    3434        self.ymax=  y_max 
    3535        # center of the figure 
    36         self.center_x= 0.0005 
    37         self.center_y= 0.0005 
     36        self.center_x= 0.0 
     37        self.center_y= 0.0 
    3838        
    3939        ## Number of points on the plot 
     
    123123            print "left has moved" 
    124124            self.left_line.update(mline=[self.center_x, self.center_y],translation=True) 
    125             self.right_line.update(mline= [self.center_x, self.center_y],translation=True) 
     125             
     126            #self.right_line.update(mline= [self.center_x, self.center_y],translation=True) 
    126127            self.top_line.update( xmin= self.left_line.x ,xmax= self.right_line.x, 
    127128                                  mline= [self.center_x, self.center_y],translation=True) 
     
    131132            print "right has moved" 
    132133            self.right_line.update(mline= [self.center_x, self.center_y],translation=True) 
    133             self.left_line.update(mline=[self.center_x, self.center_y],translation=True) 
     134            #self.left_line.update(mline=[self.center_x, self.center_y],translation=True) 
    134135            #self.left_line.update(xmin= self.right_line.x ,xmax=-1*self.right_line.x) 
    135136            self.top_line.update( xmin= self.left_line.x ,xmax= self.right_line.x, 
     
    142143            print "bottom has moved" 
    143144            self.bottom_line.update(mline= [self.center_x, self.center_y],translation=True) 
    144             self.top_line.update(y= -1*self.top_line.y,translation=True) 
     145            #self.top_line.update(y= -1*self.top_line.y,translation=True) 
    145146            self.left_line.update( ymin= self.bottom_line.y ,ymax= self.top_line.y, 
    146147                                   mline= [self.center_x, self.center_y],translation=True) 
     
    151152            print "top has moved" 
    152153            self.top_line.update(mline= [self.center_x, self.center_y],translation=True) 
    153             #self.bottom_line.update()xmin=None, xmax=None,y=None, mline=None): 
    154             self.bottom_line.update(y= -1*self.top_line.y,mline= [self.center_x, self.center_y], 
    155                                     translation=True ) 
     154             
     155            #self.bottom_line.update(y= -1*self.top_line.y,mline= [self.center_x, self.center_y], 
     156            #                        translation=True ) 
    156157            self.left_line.update(ymin= self.bottom_line.y ,ymax= self.top_line.y, 
    157158                                  mline= [self.center_x, self.center_y],translation=True) 
     
    258259    def __init__(self,base,axes,color='black', zorder=5, y=0.5, 
    259260                 xmin=0.0,xmax=0.5, 
    260                  center_x= 0, 
    261                  center_y= 0): 
     261                 center_x= 0.0, 
     262                 center_y= 0.0): 
    262263         
    263264        _BaseInteractor.__init__(self, base, axes, color=color) 
     
    342343        Restore the roughness for this layer. 
    343344        """ 
    344         self.ymin = self.save_ymin 
    345         self.ymax = self.save_ymax 
    346  
     345        self.y= self.save_y 
     346        
    347347    def move(self, x, y, ev): 
    348348        """ 
Note: See TracChangeset for help on using the changeset viewer.