@@ -7303,11 +7303,17 @@ def OnPlot3DHKL(event):
73037303 Hmin = np .array ([int (np .min (refList .T [0 ])),int (np .min (refList .T [1 ])),int (np .min (refList .T [2 ]))])
73047304 Hmax = np .array ([int (np .max (refList .T [0 ])),int (np .max (refList .T [1 ])),int (np .max (refList .T [2 ]))])
73057305 Vpoint = np .array ([int (np .mean (refList .T [0 ])),int (np .mean (refList .T [1 ])),int (np .mean (refList .T [2 ]))])
7306- controls = {'Type' :'Fosq' ,'Iscale' :False ,'HKLmax' :Hmax ,'HKLmin' :Hmin ,'Zone' :False ,'viewKey' :'L' ,
7307- 'microED' :{'Nexp' :[False ,0 ],'Ztilt' :[False ,0 ]},'dType' :data [1 ]['Type' ],
7308- 'FoMax' : FoMax ,'Scale' : 1.0 ,'Drawing' :{'viewPoint' :[Vpoint ,[]],'default' :Vpoint [:],
7309- 'backColor' :[0 ,0 ,0 ],'depthFog' :False ,'Zclip' :10.0 ,'cameraPos' :10. ,'Zstep' :0.05 ,'viewUp' :[0 ,1 ,0 ],
7310- 'Scale' :1.0 ,'oldxy' :[],'viewDir' :[0 ,0 ,1 ]},'Super' :Super ,'SuperVec' :SuperVec }
7306+ if len (data ) > 1 : #single crystal data
7307+ controls = {'Type' :'Fosq' ,'Iscale' :False ,'HKLmax' :Hmax ,'HKLmin' :Hmin ,'Zone' :False ,'viewKey' :'L' ,
7308+ 'microED' :{'Nexp' :[False ,0 ],'Ztilt' :[False ,0 ]},'dType' :data [1 ]['Type' ],
7309+ 'FoMax' : FoMax ,'Scale' : 1.0 ,'Drawing' :{'viewPoint' :[Vpoint ,[]],'default' :Vpoint [:],
7310+ 'backColor' :[0 ,0 ,0 ],'depthFog' :False ,'Zclip' :10.0 ,'cameraPos' :10. ,'Zstep' :0.05 ,'viewUp' :[0 ,1 ,0 ],
7311+ 'Scale' :1.0 ,'oldxy' :[],'viewDir' :[0 ,0 ,1 ]},'Super' :Super ,'SuperVec' :SuperVec }
7312+ else : #powder data
7313+ controls = {'Type' :'Fosq' ,'Iscale' :False ,'HKLmax' :Hmax ,'HKLmin' :Hmin ,'Zone' :False ,'viewKey' :'L' ,
7314+ 'FoMax' : FoMax ,'Scale' : 1.0 ,'Drawing' :{'viewPoint' :[Vpoint ,[]],'default' :Vpoint [:],
7315+ 'backColor' :[0 ,0 ,0 ],'depthFog' :False ,'Zclip' :10.0 ,'cameraPos' :10. ,'Zstep' :0.05 ,'viewUp' :[0 ,1 ,0 ],
7316+ 'Scale' :1.0 ,'oldxy' :[],'viewDir' :[0 ,0 ,1 ]},'Super' :Super ,'SuperVec' :SuperVec }
73117317 G2plt .Plot3DSngl (G2frame ,newPlot = True ,Data = controls ,hklRef = refList ,Title = phaseName )
73127318
73137319 def OnWilsonStat (event ):
0 commit comments