Changeset 3949
- Timestamp:
- May 3, 2019 9:21:07 AM (4 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GSASIIphsGUI.py
r3933 r3949 6214 6214 slideSizer.Add(magMult,1,wx.EXPAND|wx.RIGHT) 6215 6215 6216 if generalData['Map']['rhoMax'] :6216 if generalData['Map']['rhoMax'] and not generalData.get('4DmapData',{}): 6217 6217 contourLevelTxt = wx.StaticText(drawOptions,-1,' Rho maximum: '+'%.2f'%(drawingData['contourLevel']*generalData['Map']['rhoMax'])) 6218 6218 slideSizer.Add(contourLevelTxt,0,WACV) -
trunk/GSASIIplot.py
r3946 r3949 7876 7876 drawingData['viewPoint'] = [np.array([Tx,Ty,Tz]),pI] 7877 7877 SetViewPointText(drawingData['viewPoint'][0]) 7878 G2frame.G2plotNB.status.SetStatusText('View point at atom '+drawAtoms[pI[0]][ct-1]+str(pI) ,1)7878 G2frame.G2plotNB.status.SetStatusText('View point at atom '+drawAtoms[pI[0]][ct-1]+str(pI)+str(indx),1) 7879 7879 elif key in ['U','D','L','R'] and mapData['Flip'] == True: 7880 7880 dirDict = {'U':[0,1],'D':[0,-1],'L':[-1,0],'R':[1,0]} … … 8666 8666 rhoXYZ = [] 8667 8667 rho = [] 8668 FourD = False 8668 8669 if len(D4mapData.get('rho',[])): #preferentially select 4D map if there 8669 rho = D4mapData['rho'][:,:,:,int(G2frame.tau*10)] #pick current tau 3D slice 8670 FourD = True 8671 # rho = D4mapData['rho'][:,:,:,int(G2frame.tau*10)] #pick current tau 3D slice 8670 8672 elif len(mapData['rho']): #ordinary 3D map 8671 8673 rho = mapData['rho'] … … 8803 8805 radius = 0.1 8804 8806 RenderLines(x,y,z,Bonds,bndColor) 8805 # RenderBonds(x,y,z,Bonds,0.05,color,6)8806 8807 elif atom[cs] == 'sticks': 8807 8808 radius = 0.1 … … 8839 8840 RenderLabel(x,y,z,' '+atom[ct-2],radius,wxGreen,matRot) 8840 8841 # glDisable(GL_BLEND) 8841 if len(rhoXYZ):8842 if not FourD and len(rhoXYZ): #no green dot map for 4D - it's wrong! 8842 8843 RenderMap(rho,rhoXYZ,indx,Rok) 8843 8844 if len(mapPeaks): … … 8884 8885 RenderPlane(plane,color) 8885 8886 if drawingData.get('showSlice',False): 8886 FourD = False8887 8887 if len(D4mapData.get('rho',[])): #preferentially select 4D map if there 8888 FourD = True8889 8888 modQ = np.array(generalData['SuperVec'][0]) 8890 rho 4D= D4mapData['rho']8889 rho = D4mapData['rho'] 8891 8890 elif len(mapData['rho']): #ordinary 3D map 8892 8891 rho = mapData['rho'] … … 8907 8906 if FourD: 8908 8907 SXYZT = np.vstack((SXYZ.T,np.inner(SXYZ,modQ)+G2frame.tau)).T 8909 Z = np.reshape(map_coordinates(rho 4D,(SXYZT%1.*rho4D.shape).T,order=1,mode='wrap'),(npts,npts))8908 Z = np.reshape(map_coordinates(rho,(SXYZT%1.*rho.shape).T,order=1,mode='wrap'),(npts,npts)) 8910 8909 else: 8911 8910 Z = np.reshape(map_coordinates(rho,(SXYZ%1.*rho.shape).T,order=1,mode='wrap'),(npts,npts))
Note: See TracChangeset
for help on using the changeset viewer.