Changeset 505 for trunk/GSASIIplot.py
- Timestamp:
- Mar 1, 2012 10:29:55 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GSASIIplot.py
r493 r505 322 322 else: 323 323 G2frame.Weight = True 324 print ' plot weighting:',G2frame.Weight324 print 'error analysis:',G2frame.Weight 325 325 elif event.key == 'n': 326 326 if G2frame.Contour: … … 572 572 Choice = (' key press','l: offset left','r: offset right','d: offset down', 573 573 'u: offset up','o: reset offset','n: log(I) on','c: contour on', 574 'q: toggle q plot','s: toggle single plot',' +: no selection')574 'q: toggle q plot','s: toggle single plot','w: toggle error analysis','+: no selection') 575 575 cb = wx.ComboBox(G2frame.G2plotNB.status,style=wx.CB_DROPDOWN|wx.CB_READONLY, 576 576 choices=Choice) … … 668 668 D = xye[5]-Ymax*G2frame.delOffset 669 669 if G2frame.Weight: 670 W2 =np.sqrt(xye[2])671 D *= W2-Ymax*G2frame.delOffset670 DS = xye[5]*np.sqrt(xye[2]) 671 PlotDeltSig(G2frame,[X,DS]) 672 672 if G2frame.logPlot: 673 673 Plot.semilogy(X,Y,colors[N%6]+'+',picker=3.,clip_on=False,nonposy='mask') … … 748 748 Page.canvas.draw() 749 749 G2frame.Pwdr = True 750 751 def PlotDeltSig(G2frame,XDS): 752 try: 753 plotNum = G2frame.G2plotNB.plotList.index('Error analysis') 754 Page = G2frame.G2plotNB.nb.GetPage(plotNum) 755 Page.figure.clf() 756 Plot = Page.figure.gca() #get a fresh plot after clf() 757 except ValueError: 758 newPlot = True 759 G2frame.Cmax = 1.0 760 Plot = G2frame.G2plotNB.addMpl('Error analysis').gca() 761 plotNum = G2frame.G2plotNB.plotList.index('Error analysis') 762 Page = G2frame.G2plotNB.nb.GetPage(plotNum) 763 Page.SetFocus() 764 G2frame.G2plotNB.status.DestroyChildren() 765 Plot.set_title('Delta/sigma') 766 X,DS = XDS 767 Plot.set_xlabel(r'$\mathsf{2\theta}$',fontsize=14) 768 Plot.set_ylabel(r'$\mathsf{\Delta/\sigma}$',fontsize=14) 769 Plot.plot(X,DS,'k',picker=False) 770 Page.canvas.draw() 771 750 772 751 773 def PlotISFG(G2frame,newPlot=False,type=''): … … 1165 1187 ptx.pyqlmninit() 1166 1188 Start = False 1167 MuStrKeys = G2spc.MustrainNames(SGData)1189 # MuStrKeys = G2spc.MustrainNames(SGData) 1168 1190 cell = generalData['Cell'][1:] 1169 1191 A,B = G2lat.cell2AB(cell[:6])
Note: See TracChangeset
for help on using the changeset viewer.