Changeset 2503
- Timestamp:
- Oct 24, 2016 4:29:35 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GSASIIplot.py
r2500 r2503 4067 4067 Page.canvas.SetToolTipString('%8.3f deg'%(tth)) 4068 4068 else: 4069 xcent,ycent = Data['center'] 4069 4070 xpos = event.xdata 4070 4071 ypos = event.ydata 4072 radius = np.sqrt((xpos-xcent)**2+(ypos-ycent)**2) 4071 4073 xpix = int(xpos*scalex) 4072 4074 ypix = int(ypos*scaley) … … 4082 4084 else: 4083 4085 G2frame.G2plotNB.status.SetStatusText( \ 4084 'Detector 2-th =%9.3fdeg, dsp =%9.3fA, Q = %6.5fA-1, azm = %7.2fdeg, I = %6d'%(tth,dsp,Q,azm,Int),1)4086 'Detector radius=%.3fmm, 2-th =%.3fdeg, dsp=%.3fA, Q=%.5fA-1, azm %.2fdeg, I=%6d'%(radius,tth,dsp,Q,azm,Int),1) 4085 4087 4086 4088 def OnImPlotKeyPress(event):
Note: See TracChangeset
for help on using the changeset viewer.