Changeset 1370 for trunk/GSASIIplot.py


Ignore:
Timestamp:
May 29, 2014 11:47:31 AM (9 years ago)
Author:
vondreele
Message:

plot labels cleanup

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIplot.py

    r1369 r1370  
    552552                            pass
    553553                    dsp = 0.0
    554                     if abs(xpos) > 0.:
    555                         if 'PWDR' in plottype:                  #avoid possible singularity at beam center
     554                    if abs(xpos) > 0.:                  #avoid possible singularity at beam center
     555                        if 'PWDR' in plottype:
    556556                            dsp = wave/(2.*sind(abs(xpos)/2.0))
    557557                            q = 2.*np.pi/dsp
     
    566566                    else:
    567567                        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)
    569572                        elif 'SASD' in plottype:
    570573                            G2frame.G2plotNB.status.SetStatusText('d =%9.5f q = %9.5f Intensity =%12.5g'%(dsp,q,ypos),1)
     
    577580                        G2frame.G2plotNB.status.SetStatusText('TOF =%9.3f d =%9.5f q = %9.5f pattern ID =%5d'%(xpos,dsp,q,int(ypos)),1)
    578581                    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)
    580586                if G2frame.itemPicked:
    581587                    Page.canvas.SetToolTipString('%9.5f'%(xpos))
     
    894900                    Plot.set_ylabel(r'$\sqrt{Intensity}$',fontsize=16)
    895901                else:
    896                     Plot.set_ylabel('$Intensity$',fontsize=16)
     902                    Plot.set_ylabel(r'$Intensity$',fontsize=16)
    897903            elif 'SASD' in plottype:
    898904                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)
    900906                else:
    901                     Plot.set_ylabel('$Intensity, cm^{-1}$',fontsize=16)
     907                    Plot.set_ylabel(r'$Intensity, cm^{-1}$',fontsize=16)
    902908        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)
    904913    if G2frame.Contour:
    905914        ContourZ = []
Note: See TracChangeset for help on using the changeset viewer.