Changeset 3958
- Timestamp:
- May 6, 2019 2:11:15 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/GSASIIplot.py ¶
r3957 r3958 7675 7675 7676 7676 # PlotStructure initialization here 7677 global mcsaXYZ,mcsaTypes,mcsaBonds,txID 7677 global mcsaXYZ,mcsaTypes,mcsaBonds,txID,contourSet 7678 7678 global cell, Vol, Amat, Bmat, A4mat, B4mat 7679 7679 txID = 0 … … 7691 7691 atomData = data['Atoms'] 7692 7692 mapPeaks = [] 7693 contourSet = 0 7693 7694 if generalData.get('DisAglCtrls',{}): 7694 7695 BondRadii = generalData['DisAglCtrls']['BondRadii'] … … 8092 8093 Cx,Cy,Cz = GLU.gluUnProject(newxy[0],View[3]-newxy[1],tz) 8093 8094 rho = G2mth.getRho([Cx,Cy,Cz],mapData) 8094 G2frame.G2plotNB.status.SetStatusText('Cursor position: %.4f, %.4f, %.4f; density: %.4f'%(Cx,Cy,Cz,rho),1) 8095 8095 contlevels = contourSet.get_array() 8096 contstr = str(contlevels).strip('[]') 8097 G2frame.G2plotNB.status.SetStatusText('Cursor position: %.4f, %.4f, %.4f; density: %.4f, contours at: %s'%(Cx,Cy,Cz,rho,contstr),1) 8096 8098 8097 8099 def OnMouseWheel(event): … … 8902 8904 RenderPlane(plane,color) 8903 8905 if drawingData.get('showSlice',False): 8906 global contourSet 8904 8907 if len(D4mapData.get('rho',[])): #preferentially select 4D map if there 8905 8908 modQ = np.array(generalData['SuperVec'][0]) … … 8931 8934 plt.rcParams['figure.figsize'] = [6.0,6.0] 8932 8935 plt.cla() 8933 plt.contour(Z,colors='k',linewidths=1)8936 contourSet = plt.contour(Z,colors='k',linewidths=1) 8934 8937 plt.axis("off") 8935 8938 plt.subplots_adjust(bottom=0.,top=1.,left=0.,right=1.,wspace=0.,hspace=0.)
Note: See TracChangeset
for help on using the changeset viewer.