Changeset 3325 for trunk/GSASIIplot.py
- Timestamp:
- Mar 29, 2018 9:53:57 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GSASIIplot.py
r3324 r3325 4056 4056 def OnMotion(event): 4057 4057 xpos,ypos = event.xdata,event.ydata 4058 if xpos: 4059 xylim = Page.xylim #avoid out of frame mouse position 4060 xpos = xpos*(xylim[0][1]-xylim[0][0])+xylim[0][0] 4061 xpos = int(xpos+.5) 4058 if xpos > 1.: 4062 4059 if 0 <= xpos < len(resNames): 4063 resName = resNames[ xpos]4060 resName = resNames[int(xpos+.5)-1] 4064 4061 else: 4065 4062 resName = '' 4066 if 0.55 <= ypos <= 1.00:4067 ypos = (ypos-.55)/0.45*xylim[1][1]4068 elif 0. <= ypos <= 0.45:4069 ypos = ypos/0.45*xylim[2][1]4070 else:4071 ypos = 0.04072 4063 Page.canvas.SetCursor(wx.CROSS_CURSOR) 4073 4064 try:
Note: See TracChangeset
for help on using the changeset viewer.