Changeset 05fa132 in sasview
- Timestamp:
- Jul 9, 2018 3:09:50 AM (6 years ago)
- Branches:
- ESS_GUI, 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
- Children:
- 515c23df
- Parents:
- a36517ad
- git-author:
- Piotr Rozyczko <rozyczko@…> (07/09/18 03:09:17)
- git-committer:
- Piotr Rozyczko <rozyczko@…> (07/09/18 03:09:50)
- Location:
- src/sas/qtgui/Plotting
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/Plotting/MaskEditor.py
re20870bc r05fa132 207 207 Respond to changes in masking 208 208 """ 209 # the case of li itle numbers of True points209 # the case of litle numbers of True points 210 210 if len(mask[mask]) < 10 and self.data is not None: 211 self.data.mask = copy.deepcopy(self. mask)211 self.data.mask = copy.deepcopy(self.default_mask) 212 212 else: 213 self. mask = mask213 self.default_mask = mask 214 214 # make temperary data to plot 215 215 temp_mask = np.zeros(len(mask)) -
src/sas/qtgui/Plotting/Masks/SectorMask.py
re20870bc r05fa132 166 166 msg += "different %f, %f" % (self.left_line.phi, 167 167 self.right_line.phi) 168 raise (ValueError,msg)168 raise ValueError(msg) 169 169 params["Phi"] = self.main_line.theta 170 170 params["Delta_Phi"] = np.fabs(self.left_line.phi) -
src/sas/qtgui/Plotting/Slicers/Arc.py
re20870bc r05fa132 31 31 def set_layer(self, n): 32 32 """ 33 34 33 Allow adding plot to the same panel 34 :param n: the number of layer 35 35 """ 36 36 self.layernum = n … … 39 39 def clear(self): 40 40 """ 41 41 Clear this slicer and its markers 42 42 """ 43 43 self.clear_markers() … … 53 53 def get_radius(self): 54 54 """ 55 55 Return arc radius 56 56 """ 57 57 radius = np.sqrt(np.power(self._mouse_x, 2) + \ … … 61 61 def update(self, theta1=None, theta2=None, nbins=None, r=None): 62 62 """ 63 64 65 66 67 63 Update the plotted arc 64 :param theta1: starting angle of the arc 65 :param theta2: ending angle of the arc 66 :param nbins: number of points along the arc 67 :param r: radius of the arc 68 68 """ 69 69 # Plot inner circle … … 78 78 while self.theta2 >= (self.theta1 + 2 * np.pi): 79 79 self.theta2 -= (2 * np.pi) 80 npts = int((self.theta2 - self.theta1) / (np.pi / 120))80 self.npts = int((self.theta2 - self.theta1) / (np.pi / 120)) 81 81 82 82 if r is None: … … 92 92 x.append(xval) 93 93 y.append(yval) 94 # self.marker.set(xdata=[self._mouse_x],ydata=[0])95 94 self.arc.set_data(x, y) 96 95 … … 102 101 self._save_x = self._mouse_x 103 102 self._save_y = self._mouse_y 104 # self._save_x = ev.xdata105 # self._save_y = ev.ydata106 103 self.base.freeze_axes() 107 104 108 105 def moveend(self, ev): 109 106 """ 110 111 107 After a dragging motion reset the flag self.has_move to False 108 :param ev: event 112 109 """ 113 110 self.has_move = False … … 126 123 Process move to a new position, making sure that the move is allowed. 127 124 """ 128 # print "ring move x, y", x,y129 125 self._mouse_x = x 130 126 self._mouse_y = y
Note: See TracChangeset
for help on using the changeset viewer.