Changeset 934 for trunk/GSASIIplot.py
- Timestamp:
- May 28, 2013 4:29:16 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GSASIIplot.py
r924 r934 2618 2618 testRBObj = data.get('testRBObj',{}) 2619 2619 rbObj = testRBObj.get('rbObj',{}) 2620 MCSA = data.get('MCSA',{}) 2621 mcsaModels = [] 2622 if len(MCSA): 2623 mcsaModels = MCSA['Models'] 2620 2624 drawAtoms = drawingData.get('Atoms',[]) 2621 2625 mapData = {} … … 3464 3468 RenderBonds(x,y,z,rbBonds[ind],0.03,Gr) 3465 3469 RenderLabel(x,y,z,name,0.2,Or) 3470 if len(mcsaModels) > 1 and pageName == 'MC/SA': #skip the default MD entry 3471 XYZ,atTypes = G2mth.UpdateMCSAxyz(Bmat,mcsaModels,MCSA.get('rbData',{})) 3472 rbBonds = FindPeaksBonds(XYZ) 3473 for ind,[x,y,z] in enumerate(XYZ): 3474 aType = atTypes[ind] 3475 name = aType+str(ind) 3476 color = np.array(MCSA['AtInfo'][aType][1]) 3477 RenderSphere(x,y,z,0.2,color/255.) 3478 RenderBonds(x,y,z,rbBonds[ind],0.03,Gr) 3479 RenderLabel(x,y,z,name,0.2,Or) 3466 3480 if Backbones: 3467 3481 for chain in Backbones: … … 3554 3568 Bonds = FindBonds(XYZ) 3555 3569 elif rbType == 'Residue': 3556 atNames = [str(i)+':'+Ty for i,Ty in enumerate(rbData['atNames'])] 3570 # atNames = [str(i)+':'+Ty for i,Ty in enumerate(rbData['atNames'])] 3571 atNames = rbData['atNames'] 3557 3572 XYZ = np.copy(rbData['rbXYZ']) #don't mess with original! 3558 3573 Seq = rbData['rbSeq'] … … 3610 3625 def SetLights(): 3611 3626 glEnable(GL_DEPTH_TEST) 3612 glShadeModel(GL_ SMOOTH)3627 glShadeModel(GL_FLAT) 3613 3628 glEnable(GL_LIGHTING) 3614 3629 glEnable(GL_LIGHT0) … … 3752 3767 glMultMatrixf(matRot.T) 3753 3768 RenderUnitVectors(0.,0.,0.) 3754 radius = 0. 43769 radius = 0.2 3755 3770 for iat,atom in enumerate(XYZ): 3756 3771 x,y,z = atom … … 3758 3773 color = np.array(CL)/255. 3759 3774 RenderSphere(x,y,z,radius,color) 3760 RenderBonds(x,y,z,Bonds[iat],0. 1,color)3775 RenderBonds(x,y,z,Bonds[iat],0.05,color) 3761 3776 RenderLabel(x,y,z,atNames[iat],radius) 3762 3777 Page.canvas.SwapBuffers()
Note: See TracChangeset
for help on using the changeset viewer.