Changeset 9b05b2f in sasview for guiframe/local_perspectives
- Timestamp:
- Jan 9, 2009 5:25:48 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:
- 4b91fd1
- Parents:
- dd40217
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
guiframe/local_perspectives/plotting/boxSum.py
r78ed1ad r9b05b2f 34 34 self.ymax= y_max 35 35 # center of the figure 36 self.center_x= 0.0 00537 self.center_y= 0.0 00536 self.center_x= 0.0 37 self.center_y= 0.0 38 38 39 39 ## Number of points on the plot … … 123 123 print "left has moved" 124 124 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) 126 127 self.top_line.update( xmin= self.left_line.x ,xmax= self.right_line.x, 127 128 mline= [self.center_x, self.center_y],translation=True) … … 131 132 print "right has moved" 132 133 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) 134 135 #self.left_line.update(xmin= self.right_line.x ,xmax=-1*self.right_line.x) 135 136 self.top_line.update( xmin= self.left_line.x ,xmax= self.right_line.x, … … 142 143 print "bottom has moved" 143 144 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) 145 146 self.left_line.update( ymin= self.bottom_line.y ,ymax= self.top_line.y, 146 147 mline= [self.center_x, self.center_y],translation=True) … … 151 152 print "top has moved" 152 153 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 ) 156 157 self.left_line.update(ymin= self.bottom_line.y ,ymax= self.top_line.y, 157 158 mline= [self.center_x, self.center_y],translation=True) … … 258 259 def __init__(self,base,axes,color='black', zorder=5, y=0.5, 259 260 xmin=0.0,xmax=0.5, 260 center_x= 0 ,261 center_y= 0 ):261 center_x= 0.0, 262 center_y= 0.0): 262 263 263 264 _BaseInteractor.__init__(self, base, axes, color=color) … … 342 343 Restore the roughness for this layer. 343 344 """ 344 self.ymin = self.save_ymin 345 self.ymax = self.save_ymax 346 345 self.y= self.save_y 346 347 347 def move(self, x, y, ev): 348 348 """
Note: See TracChangeset
for help on using the changeset viewer.