Changeset 356aea78 in sasview for guiframe/local_perspectives/plotting/Arc.py
- Timestamp:
- Dec 12, 2008 6:39:35 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:
- b98db8c
- Parents:
- 3aae6b6
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
guiframe/local_perspectives/plotting/Arc.py
r2d107b8 r356aea78 72 72 while self.theta2 < self.theta1: self.theta2 += 2*math.pi 73 73 npts = int((self.theta2 - self.theta1)/(math.pi/120)) 74 75 76 77 74 78 for i in range(self.npts): 75 79 … … 89 93 self.inner_circle.set_data(x, y) 90 94 91 92 if self._inner_mouse_x <0: 93 self._inner_mouse_x= 0 94 self._inner_mouse_y= 0 95 """ 95 96 r= math.sqrt(math.pow(self._inner_mouse_x, 2)+math.pow(self._inner_mouse_y, 2)) 96 97 x1= r*math.cos(self.theta1) 97 98 y1= r*math.sin(self.theta1) 99 """ 98 100 #x1= self._inner_mouse_x*math.cos(self.theta1) 99 101 #y1= self._inner_mouse_x*math.sin(self.theta1) … … 101 103 #y2= r2*math.sin(self.theta1) 102 104 103 104 105 105 106 def save(self, ev): 106 107 """ … … 110 111 #self._inner_save_x = self._inner_mouse_x 111 112 #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 114 116 self.base.freeze_axes() 115 117 … … 129 131 Process move to a new position, making sure that the move is allowed. 130 132 """ 131 #print "ring move x, y", x,y133 print "ring move x, y", x,y 132 134 self._inner_mouse_x = x 133 135 self._inner_mouse_y = y
Note: See TracChangeset
for help on using the changeset viewer.