Changeset 1212
- Timestamp:
- Jan 31, 2014 3:51:20 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/GSASIIplot.py ¶
r1205 r1212 2298 2298 return 2299 2299 if PickName == 'Masks': 2300 if event.key in [' p','f','s','a','r']:2300 if event.key in ['l','p','f','s','a','r']: 2301 2301 G2frame.MaskKey = event.key 2302 2302 OnStartMask(G2frame) … … 2508 2508 else: 2509 2509 arcs[aN][1][1] = int(G2img.GetAzm(Xpos,Ypos,Data)) 2510 for poly in G2frame.polyList: 2510 for poly in G2frame.polyList: #merging points problem here & how can we insert a point? 2511 2511 if Obj == poly[0]: 2512 2512 ind = G2frame.itemPicked.contains(G2frame.mousePicked)[1]['ind'][0] … … 2560 2560 Page.keyPress = OnImPlotKeyPress 2561 2561 elif G2frame.PatternTree.GetItemText(G2frame.PickId) in ['Masks',]: 2562 Page.Choice = (' key press',' s: spot mask','a: arc mask','r: ring mask',2562 Page.Choice = (' key press','l: log(I) on','s: spot mask','a: arc mask','r: ring mask', 2563 2563 'p: polygon mask','f: frame mask',) 2564 if G2frame.logPlot: 2565 Page.Choice[1] = 'l: log(I) off' 2564 2566 Page.keyPress = OnImPlotKeyPress 2565 2567 elif G2frame.PatternTree.GetItemText(G2frame.PickId) in ['Stress/Strain',]: … … 2600 2602 2601 2603 if newImage: 2604 Imin,Imax = Data['range'][1] 2602 2605 MA = ma.masked_greater(ma.masked_less(G2frame.ImageZ,Zlim[0]),Zlim[1]) 2603 2606 MaskA = ma.getmaskarray(MA) … … 2605 2608 AM = G2img.ImageCompress(MaskA,imScale) 2606 2609 if G2frame.logPlot: 2610 A = np.where(A>Imin,np.where(A<Imax,A,0),0) 2607 2611 A = np.where(A>0,np.log(A),0) 2608 2612 AM = np.where(AM>0,np.log(AM),0)
Note: See TracChangeset
for help on using the changeset viewer.