Changeset 4573 for trunk/GSASIIplot.py
- Timestamp:
- Sep 21, 2020 3:43:06 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GSASIIplot.py
r4565 r4573 8483 8483 elif G2frame.phaseDisplay.GetPageText(page) == 'Atoms': 8484 8484 Ind = G2frame.phaseDisplay.GetPage(page).GetSelectedRows() #this is the Atoms grid in Atoms 8485 elif G2frame.phaseDisplay.GetPageText(page) == 'RB Models': 8486 if 'testRBObj' not in data: return [] 8487 Ind = data['testRBObj'].get('CRYhighLight',[]) 8485 8488 return Ind 8486 8489 … … 9150 9153 if iat in Ind and G2frame.phaseDisplay.GetPageText(getSelection()) != 'Map peaks': 9151 9154 atColor = np.array(Gr)/255. 9155 bndColor = atColor 9152 9156 # color += [.25,] 9153 9157 radius = 0.5 … … 9279 9283 if showBonds: 9280 9284 RenderLines(x,y,z,mapBonds[ind],Wt) 9281 if len(testRBObj) and pageName == 'RB Models': 9285 if len(testRBObj) and pageName == 'RB Models': # plot a test rigid body as ball & [green] sticks 9282 9286 XYZ = G2mth.UpdateRBXYZ(Bmat,testRBObj['rbObj'],testRBObj['rbData'],testRBObj['rbType'])[0] 9283 9287 rbBonds = FindPeaksBonds(XYZ) 9284 9288 for ind,[x,y,z] in enumerate(XYZ): 9285 9289 aType = testRBObj['rbAtTypes'][ind] 9286 name = ' '+aType+str(ind) 9290 if testRBObj['NameLookup'][ind]: 9291 name = testRBObj['NameLookup'][ind]+' ' 9292 else: 9293 name = ' '+aType+str(ind) 9287 9294 color = np.array(testRBObj['AtInfo'][aType][1]) 9288 RenderSphere(x,y,z,0.2,color/255.) 9295 if 'RBhighLight' in testRBObj and testRBObj['RBhighLight'] == ind: # highlighted atom is green 9296 RenderSphere(x,y,z,0.2,Gr) 9297 else: 9298 RenderSphere(x,y,z,0.2,color/255.) 9289 9299 RenderBonds(x,y,z,rbBonds[ind],0.03,Gr) 9290 9300 RenderLabel(x,y,z,name,0.2,wxOrange,matRot) … … 9296 9306 RenderSphere(x,y,z,0.2,color/255.) 9297 9307 RenderBonds(x,y,z,mcsaBonds[ind],0.03,Gr/255.) 9298 RenderLabel(x,y,z,name,0. 2,wxOrange,matRot)9308 RenderLabel(x,y,z,name,0.3,wxOrange,matRot) 9299 9309 if Backbones: 9300 9310 for chain in Backbones:
Note: See TracChangeset
for help on using the changeset viewer.