Changeset 2127 for trunk/GSASIIplot.py
- Timestamp:
- Jan 20, 2016 9:21:45 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GSASIIplot.py
r2120 r2127 1145 1145 newPlot = True 1146 1146 elif event.key in ['+','=']: 1147 if G2frame.PickId: 1148 G2frame.PickId = False 1147 G2frame.plusPlot = not G2frame.plusPlot 1149 1148 elif event.key == 'i' and G2frame.Contour: #for smoothing contour plot 1150 1149 choice = ['nearest','bilinear','bicubic','spline16','spline36','hanning', … … 1527 1526 Page.Choice = (' key press','n: log(I) off', 1528 1527 'c: contour on','q: toggle q plot','t: toggle d-spacing plot', 1529 'm: toggle multidata plot','w: toggle divide by sig','+: noselection')1528 'm: toggle multidata plot','w: toggle divide by sig','+: toggle selection') 1530 1529 else: 1531 1530 Page.Choice = (' key press','n: log(I) off', 1532 1531 'd: offset down','l: offset left','r: offset right','u: offset up','o: reset offset', 1533 1532 'c: contour on','q: toggle q plot','t: toggle d-spacing plot', 1534 'm: toggle multidata plot','w: toggle divide by sig','+: noselection')1533 'm: toggle multidata plot','w: toggle divide by sig','+: toggle selection') 1535 1534 elif 'SASD' in plottype: 1536 1535 if G2frame.SinglePlot: 1537 1536 Page.Choice = (' key press','b: toggle subtract background file','n: semilog on', 1538 'q: toggle S(q) plot','m: toggle multidata plot','w: toggle (Io-Ic)/sig plot','+: noselection')1537 'q: toggle S(q) plot','m: toggle multidata plot','w: toggle (Io-Ic)/sig plot','+: toggle selection') 1539 1538 else: 1540 1539 Page.Choice = (' key press','b: toggle subtract background file','n: semilog on', 1541 1540 'd: offset down','l: offset left','r: offset right','u: offset up','o: reset offset', 1542 'q: toggle S(q) plot','m: toggle multidata plot','w: toggle (Io-Ic)/sig plot','+: noselection')1541 'q: toggle S(q) plot','m: toggle multidata plot','w: toggle (Io-Ic)/sig plot','+: toggle selection') 1543 1542 else: 1544 1543 if 'PWDR' in plottype: … … 1714 1713 Plot.set_ylabel('Data sequence',fontsize=12) 1715 1714 else: 1715 if G2frame.plusPlot: 1716 pP = '+' 1717 else: 1718 pP = '' 1716 1719 if 'SASD' in plottype and G2frame.logPlot: 1717 1720 X *= (1.01)**(offsetX*N) … … 1757 1760 if 'PWDR' in plottype: 1758 1761 Plot.set_yscale("log",nonposy='mask') 1759 Plot.plot(X,Y,colors[N%6]+ '+',picker=3.,clip_on=False)1762 Plot.plot(X,Y,colors[N%6]+pP,picker=3.,clip_on=False) 1760 1763 Plot.plot(X,Z,colors[(N+1)%6],picker=False) 1761 1764 Plot.plot(X,W,colors[(N+2)%6],picker=False) #background … … 1780 1783 ecolor=colors[N%6],picker=3.,clip_on=False) 1781 1784 else: 1782 Plot.plot(X,YB,colors[N%6]+ '+',picker=3.,clip_on=False)1785 Plot.plot(X,YB,colors[N%6]+pP,picker=3.,clip_on=False) 1783 1786 Plot.plot(X,W,colors[(N+2)%6],picker=False) #const. background 1784 1787 Plot.plot(X,ZB,colors[(N+1)%6],picker=False) … … 1788 1791 DZ = xye[3]*np.sqrt(xye[2]) 1789 1792 DS = xye[5]*np.sqrt(xye[2])-Ymax*Pattern[0]['delOffset'] 1790 ObsLine = Plot.plot(X,DY,colors[N%6]+ '+',picker=3.,clip_on=False) #Io/sig(Io)1793 ObsLine = Plot.plot(X,DY,colors[N%6]+pP,picker=3.,clip_on=False) #Io/sig(Io) 1791 1794 Plot.plot(X,DZ,colors[(N+1)%6],picker=False) #Ic/sig(Io) 1792 1795 DifLine = Plot.plot(X,DS,colors[(N+3)%6],picker=1.) #(Io-Ic)/sig(Io) … … 1795 1798 if G2frame.SubBack: 1796 1799 if 'PWDR' in plottype: 1797 Plot.plot(Xum,Y-W,colors[N%6]+ '+',picker=False,clip_on=False) #Io-Ib1800 Plot.plot(Xum,Y-W,colors[N%6]+pP,picker=False,clip_on=False) #Io-Ib 1798 1801 Plot.plot(X,Z-W,colors[(N+1)%6],picker=False) #Ic-Ib 1799 1802 else: 1800 Plot.plot(X,YB,colors[N%6]+ '+',picker=3.,clip_on=False)1803 Plot.plot(X,YB,colors[N%6]+pP,picker=3.,clip_on=False) 1801 1804 Plot.plot(X,ZB,colors[(N+1)%6],picker=False) 1802 1805 else: 1803 1806 if 'PWDR' in plottype: 1804 ObsLine = Plot.plot(Xum,Y,colors[N%6]+ '+',picker=3.,clip_on=False) #Io1807 ObsLine = Plot.plot(Xum,Y,colors[N%6]+pP,picker=3.,clip_on=False) #Io 1805 1808 Plot.plot(X,Z,colors[(N+1)%6],picker=False) #Ic 1806 1809 else: 1807 Plot.plot(X,YB,colors[N%6]+ '+',picker=3.,clip_on=False)1810 Plot.plot(X,YB,colors[N%6]+pP,picker=3.,clip_on=False) 1808 1811 Plot.plot(X,ZB,colors[(N+1)%6],picker=False) 1809 1812 if 'PWDR' in plottype: … … 2661 2664 data = G2mth.setPeakparms(Parms,Parms2,X,Z) 2662 2665 s = 1.17741*np.sqrt(data[4])*np.pi/18000. 2663 g = data[6]*np.pi/ 18000.2666 g = data[6]*np.pi/36000. 2664 2667 G = G2pwd.getgamFW(g,s) 2665 2668 Y = s/nptand(X/2.) … … 2672 2675 fit = G2mth.setPeakparms(Parms,Parms2,X,Z,useFit=True) 2673 2676 sf = 1.17741*np.sqrt(fit[4])*np.pi/18000. 2674 gf = fit[6]*np.pi/ 18000.2677 gf = fit[6]*np.pi/36000. 2675 2678 Gf = G2pwd.getgamFW(gf,sf) 2676 2679 Yf = sf/nptand(X/2.) … … 2692 2695 except ValueError: 2693 2696 s = 0.01 2694 g = peak[6]*math.pi/ 18000.2697 g = peak[6]*math.pi/36000. 2695 2698 G = G2pwd.getgamFW(g,s) 2696 2699 Y.append(s/tand(peak[0]/2.))
Note: See TracChangeset
for help on using the changeset viewer.