Changeset 1370 for trunk/GSASIIplot.py
- Timestamp:
- May 29, 2014 11:47:31 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GSASIIplot.py
r1369 r1370 552 552 pass 553 553 dsp = 0.0 554 if abs(xpos) > 0.: 555 if 'PWDR' in plottype: #avoid possible singularity at beam center554 if abs(xpos) > 0.: #avoid possible singularity at beam center 555 if 'PWDR' in plottype: 556 556 dsp = wave/(2.*sind(abs(xpos)/2.0)) 557 557 q = 2.*np.pi/dsp … … 566 566 else: 567 567 if 'PWDR' in plottype: 568 G2frame.G2plotNB.status.SetStatusText('2-theta =%9.3f d =%9.5f q = %9.5f Intensity =%9.2f'%(xpos,dsp,q,ypos),1) 568 if G2frame.SqrtPlot: 569 G2frame.G2plotNB.status.SetStatusText('2-theta =%9.3f d =%9.5f q = %9.5f sqrt(Intensity) =%9.2f'%(xpos,dsp,q,ypos),1) 570 else: 571 G2frame.G2plotNB.status.SetStatusText('2-theta =%9.3f d =%9.5f q = %9.5f Intensity =%9.2f'%(xpos,dsp,q,ypos),1) 569 572 elif 'SASD' in plottype: 570 573 G2frame.G2plotNB.status.SetStatusText('d =%9.5f q = %9.5f Intensity =%12.5g'%(dsp,q,ypos),1) … … 577 580 G2frame.G2plotNB.status.SetStatusText('TOF =%9.3f d =%9.5f q = %9.5f pattern ID =%5d'%(xpos,dsp,q,int(ypos)),1) 578 581 else: 579 G2frame.G2plotNB.status.SetStatusText('TOF =%9.3f d =%9.5f q = %9.5f Intensity =%9.2f'%(xpos,dsp,q,ypos),1) 582 if G2frame.SqrtPlot: 583 G2frame.G2plotNB.status.SetStatusText('TOF =%9.3f d =%9.5f q = %9.5f sqrt(Intensity) =%9.2f'%(xpos,dsp,q,ypos),1) 584 else: 585 G2frame.G2plotNB.status.SetStatusText('TOF =%9.3f d =%9.5f q = %9.5f Intensity =%9.2f'%(xpos,dsp,q,ypos),1) 580 586 if G2frame.itemPicked: 581 587 Page.canvas.SetToolTipString('%9.5f'%(xpos)) … … 894 900 Plot.set_ylabel(r'$\sqrt{Intensity}$',fontsize=16) 895 901 else: 896 Plot.set_ylabel( '$Intensity$',fontsize=16)902 Plot.set_ylabel(r'$Intensity$',fontsize=16) 897 903 elif 'SASD' in plottype: 898 904 if G2frame.sqPlot: 899 Plot.set_ylabel( '$S(Q)=I*Q^{4}$',fontsize=16)905 Plot.set_ylabel(r'$S(Q)=I*Q^{4}$',fontsize=16) 900 906 else: 901 Plot.set_ylabel( '$Intensity, cm^{-1}$',fontsize=16)907 Plot.set_ylabel(r'$Intensity, cm^{-1}$',fontsize=16) 902 908 else: 903 Plot.set_ylabel('Normalized intensity',fontsize=16) 909 if G2frame.SqrtPlot: 910 Plot.set_ylabel(r'$\sqrt{Normalized\ intensity}$',fontsize=16) 911 else: 912 Plot.set_ylabel(r'$Normalized\ intensity$',fontsize=16) 904 913 if G2frame.Contour: 905 914 ContourZ = []
Note: See TracChangeset
for help on using the changeset viewer.