Changeset 3295 for trunk/GSASIIplot.py


Ignore:
Timestamp:
Feb 22, 2018 11:01:07 AM (5 years ago)
Author:
vondreele
Message:

remove superfluous calls to SpcGroup? after SGData has been defined
add 3rd row magnetic form factors
add contour plots for projections of mustrain, size, % 3D pole distribution
improve quality of these surfaces

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIplot.py

    r3290 r3295  
    39643964    G2frame.G2plotNB.status.SetStatusText('',1)
    39653965   
    3966     PHI = np.linspace(0.,360.,30,True)
    3967     PSI = np.linspace(0.,180.,30,True)
     3966    PHI = np.linspace(0.,360.,40,True)
     3967    PSI = np.linspace(0.,180.,40,True)
    39683968    X = np.outer(npcosd(PHI),npsind(PSI))
    39693969    Y = np.outer(npsind(PHI),npsind(PSI))
     
    40394039            xyzlim = np.array([Plot.get_xlim3d(),Plot.get_ylim3d(),Plot.get_zlim3d()]).T
    40404040            XYZlim = [min(xyzlim[0]),max(xyzlim[1])]
     4041            Plot.contour(X,Y,Z,10,zdir='x',offset=XYZlim[0])
     4042            Plot.contour(X,Y,Z,10,zdir='y',offset=XYZlim[1])
     4043            Plot.contour(X,Y,Z,10,zdir='z',offset=XYZlim[0])
    40414044            Plot.set_xlim3d(XYZlim)
    40424045            Plot.set_ylim3d(XYZlim)
     
    43054308                xyzlim = np.array([Plot.get_xlim3d(),Plot.get_ylim3d(),Plot.get_zlim3d()]).T
    43064309                XYZlim = [min(xyzlim[0]),max(xyzlim[1])]
     4310                Plot.contour(X,Y,Z,10,zdir='x',offset=XYZlim[0])
     4311                Plot.contour(X,Y,Z,10,zdir='y',offset=XYZlim[1])
     4312                Plot.contour(X,Y,Z,10,zdir='z',offset=XYZlim[0])
    43074313                Plot.set_xlim3d(XYZlim)
    43084314                Plot.set_ylim3d(XYZlim)
Note: See TracChangeset for help on using the changeset viewer.