Changeset 1780 for trunk/GSASIIplot.py
- Timestamp:
- Apr 7, 2015 5:14:33 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GSASIIplot.py
r1779 r1780 2727 2727 phi,beta = G2lat.CrsAng(PH,cell,SGData) 2728 2728 ODFln = G2lat.Flnh(Start,SHCoef,phi,beta,SGData) 2729 if not np.any(ODFln): 2730 return 2729 2731 PX = np.array(SHData['PFxyz']) 2730 2732 gam = atan2d(PX[0],PX[1]) … … 2754 2756 Z = G2lat.invpolfcal(IODFln,SGData,R,P) 2755 2757 Z = np.reshape(Z,(npts,npts)) 2756 CS = Plot.contour(Y,X,Z,aspect='equal')2757 Plot.clabel(CS,fontsize=9,inline=1)2758 2758 try: 2759 Img = Plot.imshow(Z.T,aspect='equal',cmap=G2frame.ContourColor,extent=[-1,1,-1,1]) 2759 CS = Plot.contour(Y,X,Z,aspect='equal') 2760 Plot.clabel(CS,fontsize=9,inline=1) 2760 2761 except ValueError: 2761 2762 pass 2763 Img = Plot.imshow(Z.T,aspect='equal',cmap=G2frame.ContourColor,extent=[-1,1,-1,1]) 2762 2764 Page.figure.colorbar(Img) 2763 2765 Plot.set_title('Inverse pole figure for XYZ='+str(SHData['PFxyz']))
Note: See TracChangeset
for help on using the changeset viewer.