Changeset 766
- Timestamp:
- Oct 1, 2012 10:24:14 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GSASIIplot.py
r762 r766 2323 2323 mapPeaks = [] 2324 2324 if 'Map Peaks' in data: 2325 mapPeaks = data['Map Peaks'] 2325 mapPeaks = np.array(data['Map Peaks']) 2326 peakMax = np.max(mapPeaks.T[0]) 2326 2327 drawingData = data['Drawing'] 2327 2328 try: … … 2829 2830 glPopMatrix() 2830 2831 2831 def RenderMapPeak(x,y,z,color ):2832 def RenderMapPeak(x,y,z,color,den): 2832 2833 xyz = np.array([x,y,z]) 2833 2834 glEnable(GL_COLOR_MATERIAL) 2834 2835 glLineWidth(3) 2835 glColor3fv(color )2836 glColor3fv(color*den/255) 2836 2837 glPushMatrix() 2837 2838 glBegin(GL_LINES) … … 3052 3053 for ind,[mag,x,y,z,d] in enumerate(mapPeaks): 3053 3054 if ind in Ind and pageName == 'Map peaks': 3054 RenderMapPeak(x,y,z,Gr )3055 RenderMapPeak(x,y,z,Gr,1.0) 3055 3056 else: 3056 RenderMapPeak(x,y,z,Wt )3057 RenderMapPeak(x,y,z,Wt,mag/peakMax) 3057 3058 if Backbones: 3058 3059 for chain in Backbones:
Note: See TracChangeset
for help on using the changeset viewer.