Changeset 1799 for trunk/GSASIIplot.py


Ignore:
Timestamp:
Apr 20, 2015 4:05:49 PM (7 years ago)
Author:
vondreele
Message:

trap missing data error
numpy array sph.harm. texture fit function & derivative routines - speedier
change pole figure titles

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIplot.py

    r1789 r1799  
    26842684    generalData = data['General']
    26852685    SGData = generalData['SGData']
     2686    pName = generalData['Name']
    26862687    textureData = generalData['SH Texture']
    26872688    G2frame.G2plotNB.Delete('Texture')
     
    27642765        Plot.plot(X,Y,color='k',label=str(SHData['PFhkl']))
    27652766        Plot.legend(loc='best')
    2766         Plot.set_title('Axial distribution for HKL='+str(SHData['PFhkl']))
     2767        h,k,l = SHData['PFhkl']
     2768        Plot.set_title('%d %d %d Axial distribution for %s'%(h,k,l,pName))
    27672769        Plot.set_xlabel(r'$\psi$',fontsize=16)
    27682770        Plot.set_ylabel('MRD',fontsize=14)
     
    27872789            Img = Plot.imshow(Z.T,aspect='equal',cmap=G2frame.ContourColor,extent=[-1,1,-1,1])
    27882790            Page.figure.colorbar(Img)
    2789             Plot.set_title('Inverse pole figure for XYZ='+str(SHData['PFxyz']))
     2791            x,y,z = SHData['PFxyz']
     2792            Plot.set_title('%d %d %d Inverse pole figure for %s'%(int(x),int(y),int(z),pName))
    27902793            Plot.set_xlabel(G2frame.Projection.capitalize()+' projection')
    27912794                       
     
    28072810            Img = Plot.imshow(Z.T,aspect='equal',cmap=G2frame.ContourColor,extent=[-1,1,-1,1])
    28082811            Page.figure.colorbar(Img)
    2809             Plot.set_title('Pole figure for HKL='+str(SHData['PFhkl']))
     2812            h,k,l = SHData['PFhkl']
     2813            Plot.set_title('%d %d %d Pole figure for %s'%(h,k,l,pName))
    28102814            Plot.set_xlabel(G2frame.Projection.capitalize()+' projection')
    28112815    Page.canvas.draw()
Note: See TracChangeset for help on using the changeset viewer.