Ignore:
Timestamp:
Dec 12, 2008 6:39:35 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:
b98db8c
Parents:
3aae6b6
Message:

working on sector slicer

File:
1 edited

Legend:

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

    r2d107b8 r356aea78  
    7272        while self.theta2 < self.theta1: self.theta2 += 2*math.pi 
    7373        npts = int((self.theta2 - self.theta1)/(math.pi/120)) 
     74         
     75         
     76             
     77             
    7478        for i in range(self.npts): 
    7579             
     
    8993        self.inner_circle.set_data(x, y)  
    9094         
    91         
    92         if self._inner_mouse_x <0: 
    93             self._inner_mouse_x= 0 
    94             self._inner_mouse_y= 0 
     95        """ 
    9596        r=  math.sqrt(math.pow(self._inner_mouse_x, 2)+math.pow(self._inner_mouse_y, 2)) 
    9697        x1=  r*math.cos(self.theta1) 
    9798        y1= r*math.sin(self.theta1) 
     99        """ 
    98100        #x1= self._inner_mouse_x*math.cos(self.theta1) 
    99101        #y1= self._inner_mouse_x*math.sin(self.theta1) 
     
    101103        #y2= r2*math.sin(self.theta1) 
    102104        
    103              
    104         
     105    
    105106    def save(self, ev): 
    106107        """ 
     
    110111        #self._inner_save_x = self._inner_mouse_x 
    111112        #self._inner_save_y = self._inner_mouse_y 
    112         self._inner_save_x = self._inner_mouse_x 
    113         self._inner_save_y = self._inner_mouse_y 
     113        self._inner_save_x = ev.xdata 
     114        self._inner_save_y = ev.ydata 
     115        print "save value",self._inner_save_x ,self._inner_save_y 
    114116        self.base.freeze_axes() 
    115117 
     
    129131        Process move to a new position, making sure that the move is allowed. 
    130132        """ 
    131         #print "ring move x, y", x,y 
     133        print "ring move x, y", x,y 
    132134        self._inner_mouse_x = x 
    133135        self._inner_mouse_y = y 
Note: See TracChangeset for help on using the changeset viewer.