Changeset 3295 for trunk/GSASIIplot.py
- Timestamp:
- Feb 22, 2018 11:01:07 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GSASIIplot.py
r3290 r3295 3964 3964 G2frame.G2plotNB.status.SetStatusText('',1) 3965 3965 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) 3968 3968 X = np.outer(npcosd(PHI),npsind(PSI)) 3969 3969 Y = np.outer(npsind(PHI),npsind(PSI)) … … 4039 4039 xyzlim = np.array([Plot.get_xlim3d(),Plot.get_ylim3d(),Plot.get_zlim3d()]).T 4040 4040 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]) 4041 4044 Plot.set_xlim3d(XYZlim) 4042 4045 Plot.set_ylim3d(XYZlim) … … 4305 4308 xyzlim = np.array([Plot.get_xlim3d(),Plot.get_ylim3d(),Plot.get_zlim3d()]).T 4306 4309 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]) 4307 4313 Plot.set_xlim3d(XYZlim) 4308 4314 Plot.set_ylim3d(XYZlim)
Note: See TracChangeset
for help on using the changeset viewer.