- Timestamp:
- Jun 12, 2008 11:33:36 AM (17 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:
- ac9c465
- Parents:
- 2310d69
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
guitools/PlotPanel.py
r38fc601 r4101eea 187 187 ax = event.inaxes 188 188 if ax !=None: 189 x,y = event.x,event.y189 190 190 #print "these are x %f and y %f"%(x,y) 191 self.xInit,self.yInit= ax.transAxes.inverse_xy_tup((x,y))192 #print "this is xInit %f this is yInit %f"%(self.xInit, self.yInit)191 self.xInit,self.yInit=event.xdata,event.ydata 192 print "this is xInit %f this is yInit %f"%(self.xInit, self.yInit) 193 193 def onLeftUp(self,event): 194 194 """ Dragging is done """ … … 224 224 ax = event.inaxes 225 225 if ax !=None: 226 x,y = event.x,event.y 227 self.xFinal,self.yFinal=ax.transAxes.inverse_xy_tup((x,y)) 226 self.xFinal,self.yFinal=event.xdata,event.ydata 228 227 229 228 xdelta = self.xFinal -self.xInit
Note: See TracChangeset
for help on using the changeset viewer.