Changeset 2835 for trunk/GSASIIplot.py
- Timestamp:
- May 16, 2017 4:02:31 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GSASIIplot.py
r2829 r2835 4489 4489 ypix = int(ypos*scaley) 4490 4490 Int = 0 4491 if (0 <= xpix < sizexy[ 1]) and (0 <= ypix < sizexy[0]):4491 if (0 <= xpix < sizexy[0]) and (0 <= ypix < sizexy[1]): 4492 4492 Int = G2frame.ImageZ[ypix][xpix] 4493 4493 tth,azm,D,dsp = G2img.GetTthAzmDsp(xpos,ypos,Data) … … 4571 4571 elif event.key in ['y',]: 4572 4572 Data['invert_y'] = not Data['invert_y'] 4573 else: 4574 return 4573 4575 wx.CallAfter(PlotImage,G2frame,newPlot=True) 4574 4576 … … 4838 4840 Xpix = Xpos*scalex 4839 4841 Ypix = Ypos*scaley 4840 xpos,ypos,I,J = G2img.ImageLocalMax(G2frame.ImageZ,pixLimit,Xpix,Ypix) 4842 if event.key == 'shift': #force selection at cursor position 4843 xpos = Xpix 4844 ypos = Ypix 4845 I = J = 10 4846 else: 4847 xpos,ypos,I,J = G2img.ImageLocalMax(G2frame.ImageZ,pixLimit,Xpix,Ypix) 4841 4848 if I and J: 4842 4849 xpos += .5 #shift to pixel center
Note: See TracChangeset
for help on using the changeset viewer.