Changeset 3248
- Timestamp:
- Jan 29, 2018 4:13:35 PM (5 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GSASIIdataGUI.py
r3246 r3248 7433 7433 G2plt.PlotImage(G2frame,newPlot=True) 7434 7434 elif G2frame.GPXtree.GetItemText(item).startswith('PKS '): 7435 G2frame.PatternId = item 7435 7436 G2plt.PlotPowderLines(G2frame) 7436 7437 elif G2frame.GPXtree.GetItemText(item).startswith('PWDR '): -
trunk/GSASIIplot.py
r3247 r3248 1317 1317 global DifLine # BHT: probably does not need to be global 1318 1318 global Ymax 1319 global Pattern,mcolors 1319 global Pattern,mcolors,Plot 1320 1320 plottype = plotType 1321 1321 … … 1535 1535 indx = -2 1536 1536 if len(G2frame.HKL): 1537 view = Page.toolbar._views.forward()[0][:2]1538 wid = view[1]-view[0]1537 limx = Plot.get_xlim() 1538 wid = limx[1]-limx[0] 1539 1539 found = G2frame.HKL[np.where(np.fabs(G2frame.HKL.T[indx]-xpos) < 0.002*wid)] 1540 1540 if len(found): … … 2898 2898 '''plot of CW or TOF peak calibration 2899 2899 ''' 2900 2901 global Plot 2900 2902 def OnMotion(event): 2901 2903 xpos = event.xdata … … 2908 2910 G2frame.G2plotNB.status.SetStatusText('Select '+Title+' pattern first',1) 2909 2911 found = [] 2910 wid = 1 2911 view = Page.toolbar._views.forward() 2912 if view: 2913 view = view[0][:2] 2914 wid = view[1]-view[0] 2912 xlim = Plot.get_xlim() 2913 wid = xlim[1]-xlim[0] 2915 2914 found = XY[np.where(np.fabs(XY.T[0]-xpos) < 0.005*wid)] 2916 2915 if len(found): … … 3397 3396 ''' plotting of powder lines (i.e. no powder pattern) as sticks 3398 3397 ''' 3399 3398 global Plot 3400 3399 def OnMotion(event): 3401 3400 xpos = event.xdata … … 3406 3405 found = [] 3407 3406 if len(G2frame.HKL): 3408 view = Page.toolbar._views.forward()[0][:2]3409 wid = view[1]-view[0]3407 xlim = Plot.get_xlim() 3408 wid = xlim[1]-xlim[0] 3410 3409 found = G2frame.HKL[np.where(np.fabs(G2frame.HKL.T[-1]-xpos) < 0.002*wid)] 3411 3410 if len(found): -
trunk/GSASIIpwdGUI.py
r3245 r3248 2933 2933 spc = controls[13] 2934 2934 SGData = G2spc.SpcGroup(spc)[1] 2935 Symb = SGData['SpGrp'] 2935 2936 if ssopt.get('Use',False): 2936 2937 SSGData = G2spc.SSpcGroup(SGData,ssopt['ssSymb'])[1] 2938 Symb = SSGData['SSpGrp'] 2937 2939 Vec = ssopt['ModVec'] 2938 2940 maxH = ssopt['maxH'] … … 2951 2953 G2frame.HKL = np.array(G2frame.HKL) 2952 2954 if len(G2frame.HKL): 2953 print (' new M20,X20: %.2f %d fraction found: %.3f'%(M20,X20,float(len(peaks[0]))/len(G2frame.HKL))) 2955 print (' new M20,X20: %.2f %d, fraction found: %.3f for %s' \ 2956 %(M20,X20,float(len(peaks[0]))/len(G2frame.HKL),Symb)) 2954 2957 G2frame.GPXtree.SetItemPyData(G2gd.GetGPXtreeItemId(G2frame,PatternId, 'Index Peak List'),peaks) 2955 2958 if 'PKS' in G2frame.GPXtree.GetItemText(G2frame.PatternId):
Note: See TracChangeset
for help on using the changeset viewer.