Changeset 4507
- Timestamp:
- Jun 22, 2020 7:55:35 PM (3 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GSASIIphsGUI.py
r4505 r4507 2404 2404 pawleySizer.Add(wx.StaticText(General,label=' Pawley neg. wt.: '),0,WACV) 2405 2405 pawlNegWt = G2G.ValidatedTxtCtrl(General,generalData,'Pawley neg wt',size=(65,25), 2406 xmin=0.,xmax=1.,nDig=(10, 4))2406 xmin=0.,xmax=1.,nDig=(10,3,'g')) 2407 2407 pawleySizer.Add(pawlNegWt,0,WACV) 2408 2408 return pawleySizer … … 8787 8787 showSizer.Add(line3Sizer) 8788 8788 8789 8790 8789 if generalData['Map']['rhoMax']: 8791 8790 line3Sizer = wx.BoxSizer(wx.HORIZONTAL) … … 8837 8836 vals = plane.GetValue().split() 8838 8837 try: 8839 hkl = [ int(vals[i]) for i in range(3)]8840 if not np.any(np.array(hkl)): #can't be all zeros!8838 hkl = [float(vals[i]) for i in range(3)] 8839 if not any(hkl): #can't be all zeros! 8841 8840 raise ValueError 8842 8841 except (ValueError,IndexError): 8843 8842 hkl = drawingData['Plane'][0] 8844 8843 drawingData['Plane'][0] = hkl 8845 plane.SetValue('% 3d %3d %3d'%(hkl[0],hkl[1],hkl[2]))8844 plane.SetValue('%5.3f %5.3f %5.3f'%(hkl[0],hkl[1],hkl[2])) 8846 8845 G2plt.PlotStructure(G2frame,data) 8847 8846 … … 8865 8864 planeSizer1.Add(wx.StaticText(drawOptions,label=' Plane: '),0,WACV) 8866 8865 H = drawingData['Plane'][0] 8867 # Zstep = G2G.ValidatedTxtCtrl(drawOptions,drawingData,'Zstep',nDig=(10,2),xmin=0.01,xmax=4.0) 8868 plane = wx.TextCtrl(drawOptions,value='%3d %3d %3d'%(H[0],H[1],H[2]), 8866 plane = wx.TextCtrl(drawOptions,value='%5.3f %5.3f %5.3f'%(H[0],H[1],H[2]), 8869 8867 style=wx.TE_PROCESS_ENTER) 8870 8868 plane.Bind(wx.EVT_TEXT_ENTER,OnPlane) -
trunk/GSASIIplot.py
r4502 r4507 9065 9065 GL.glTranslate(-Tx,-Ty,-Tz) 9066 9066 drawingData['modelView'] = GL.glGetDoublev(GL.GL_MODELVIEW_MATRIX) 9067 if drawingData['unitCellBox']:9068 RenderBox()9069 if drawingData['Plane'][1]:9070 H,phase,stack,phase,color = drawingData['Plane']9071 Planes = G2lat.PlaneIntercepts(Amat,H,phase,stack)9072 for plane in Planes:9073 RenderPlane(plane,color)9067 # if drawingData['unitCellBox']: 9068 # if drawingData['Plane'][1]: 9069 # H,phase,stack,phase,color = drawingData['Plane'] 9070 # Planes = G2lat.PlaneIntercepts(Amat,H,phase,stack) 9071 # for plane in Planes: 9072 # RenderPlane(plane,color) 9073 # RenderBox() 9074 9074 if drawingData['showABC']: 9075 9075 x,y,z = drawingData['viewPoint'][0] … … 9257 9257 for x,y,z in drawingData['Voids']: 9258 9258 RenderFadeSphere(x,y,z,.05,(0.,0.,1.)) 9259 if drawingData['unitCellBox']: 9260 RenderBox() 9261 if drawingData['Plane'][1]: 9262 H,phase,stack,phase,color = drawingData['Plane'] 9263 Planes = G2lat.PlaneIntercepts(Amat,H,phase,stack) 9264 for plane in Planes: 9265 RenderPlane(plane,color) 9259 9266 if drawingData.get('showSlice',False): #must be done last to properly show things behind as faded 9260 9267 global contourSet,Zslice
Note: See TracChangeset
for help on using the changeset viewer.