Skip to content

Commit 99e4e38

Browse files
committed
fix deformation plots
1 parent 03e69d4 commit 99e4e38

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

GSASII/GSASIIplot.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7355,11 +7355,12 @@ def Draw(caller='',Fade=[],NPkey=False):
73557355
SHC = defParms[0][1]
73567356
SHC = {item.replace('D','C'):SHC[item] for item in SHC if item not in ['Ne','kappa']}
73577357
SGC = nl.inv(G2lat.CrysM2CartM(Amat,Bmat,SGM))
7358-
UVMat = np.inner(defCtrls['UVmat'].T,SGC.T)
7358+
UVMat = np.inner(defCtrls['UVmat'],SGC.T)
73597359
# print(nl.det(UVMat),atom[ct-1],atom[cs-1],'\n',UVMat,'\n',SGC)
7360-
Npsi,Ngam = 90,45
7360+
Npsi,Ngam = 60,30
73617361
PSI,GAM = np.mgrid[0:Npsi,0:Ngam] #[azm,pol]
73627362
PSI = PSI.flatten()*360./Npsi #azimuth 0-360 incl
7363+
PSI += 90.
73637364
GAM = GAM.flatten()*180./Ngam #polar 0-180 incl
73647365
Rp,PSIp,GAMp = G2mth.RotPolbyM(np.ones_like(PSI),PSI,GAM,UVMat)
73657366
P = G2lat.SHarmcal(SytSym,SHC,PSIp,GAMp).reshape((Npsi,Ngam))

0 commit comments

Comments
 (0)