Changeset 3900 for trunk/GSASIIphsGUI.py
- Timestamp:
- Apr 15, 2019 4:15:37 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GSASIIphsGUI.py
r3897 r3900 5193 5193 'backColor':[0,0,0],'depthFog':False,'Zclip':50.0,'cameraPos':50.,'Zstep':0.5, 5194 5194 'radiusFactor':0.85,'contourLevel':1.,'bondRadius':0.1,'ballScale':0.33, 5195 'vdwScale':0.67,'ellipseProb':50,'sizeH':0.50,'unitCellBox':True, 5195 'vdwScale':0.67,'ellipseProb':50,'sizeH':0.50,'unitCellBox':True,'contourMax':1.0, 5196 5196 'showABC':True,'selectedAtoms':[],'Atoms':[],'oldxy':[],'magMult':1.0, 5197 5197 'bondList':{},'viewDir':[1,0,0],'Plane':[[0,0,1],False,False,0.0,[255,255,0]]} … … 5212 5212 if 'contourLevel' not in drawingData: 5213 5213 drawingData['contourLevel'] = 1. 5214 if 'contourMax' not in drawingData: 5215 drawingData['contourMax'] = 1. 5214 5216 if 'viewDir' not in drawingData: 5215 5217 drawingData['viewDir'] = [0,0,1] … … 6130 6132 def OnContourLevel(event): 6131 6133 drawingData['contourLevel'] = contourLevel.GetValue()/100. 6132 contourLevelTxt.SetLabel(' Contour level: '+'%.2f'%(drawingData['contourLevel']*generalData['Map']['rhoMax']))6134 contourLevelTxt.SetLabel(' Rho maximum: '+'%.2f'%(drawingData['contourLevel']*generalData['Map']['rhoMax'])) 6133 6135 G2plt.PlotStructure(G2frame,data) 6134 6136 … … 6209 6211 6210 6212 if generalData['Map']['rhoMax']: 6211 contourLevelTxt = wx.StaticText(drawOptions,-1,' Contour level: '+'%.2f'%(drawingData['contourLevel']*generalData['Map']['rhoMax']))6213 contourLevelTxt = wx.StaticText(drawOptions,-1,' Rho maximum: '+'%.2f'%(drawingData['contourLevel']*generalData['Map']['rhoMax'])) 6212 6214 slideSizer.Add(contourLevelTxt,0,WACV) 6213 6215 contourLevel = wx.Slider(drawOptions,style=wx.SL_HORIZONTAL,value=int(100*drawingData['contourLevel'])) … … 6256 6258 G2plt.PlotStructure(G2frame,data) 6257 6259 6260 def OnContourMax(event): 6261 drawingData['contourMax'] = contourMax.GetValue()/100. 6262 contourMaxTxt.SetLabel(' Max.: '+'%.2f'%(drawingData['contourMax']*generalData['Map']['rhoMax'])) 6263 G2plt.PlotStructure(G2frame,data) 6264 6258 6265 def OnViewPoint(event): 6259 6266 event.Skip() … … 6345 6352 showSizer.Add(line2Sizer) 6346 6353 6347 if generalData['Map']['rhoMax'] and drawingData['unitCellBox']:6354 if generalData['Map']['rhoMax']: 6348 6355 line3Sizer = wx.BoxSizer(wx.HORIZONTAL) 6349 6356 … … 6352 6359 showCS.SetValue(drawingData['showSlice']) 6353 6360 line3Sizer.Add(showCS,0,WACV) 6361 contourMaxTxt = wx.StaticText(drawOptions,-1,' Max.: '+'%.2f'%(drawingData['contourMax']*generalData['Map']['rhoMax'])) 6362 line3Sizer.Add(contourMaxTxt,0,WACV) 6363 contourMax = wx.Slider(drawOptions,style=wx.SL_HORIZONTAL,size=(150,25),value=int(100*drawingData['contourMax'])) 6364 contourMax.SetRange(1,100) 6365 contourMax.Bind(wx.EVT_SLIDER, OnContourMax) 6366 line3Sizer.Add(contourMax,1,wx.EXPAND|wx.RIGHT) 6354 6367 6355 6368 showSizer.Add(line3Sizer)
Note: See TracChangeset
for help on using the changeset viewer.