Changeset 758
 Timestamp:
 Sep 16, 2012 3:16:27 AM (9 years ago)
 Location:
 trunk
 Files:

 3 edited
Legend:
 Unmodified
 Added
 Removed

trunk/GSASIIlattice.py
r736 r758 1014 1014 if SGLaue in ['mmm','4/mmm','6/mmm','R3mR','3m1','31m']: 1015 1015 if SGLaue in ['3mR','3m1','31m']: 1016 if n%6 == 3:1016 if N%6 == 3: 1017 1017 Kcl = pcrs*sind(N*beta) 1018 1018 else: 
trunk/GSASIIphsGUI.py
r757 r758 1566 1566 'vdwScale':0.67,'ellipseProb':50,'sizeH':0.50,'unitCellBox':False, 1567 1567 'showABC':True,'selectedAtoms':[],'Atoms':[],'oldxy':[], 1568 'bondList':{},'viewDir':[0,0,1]} 1569 defaultDrawing['Quaternion'] = G2mth.AV2Q(2*np.pi,np.inner(Amat,[0,0,1])) 1568 'bondList':{},'viewDir':[1,0,0]} 1569 V0 = np.array([0,0,1]) 1570 V = np.inner(Amat,V0) 1571 V /= np.sqrt(np.sum(V**2)) 1572 A = np.arccos(np.sum(V*V0)) 1573 defaultDrawing['Quaternion'] = G2mth.AV2Q(A,[0,1,0]) 1570 1574 try: 1571 1575 drawingData = data['Drawing'] … … 1843 1847 drawAtoms.SetAttr(i,cs+2,attr) 1844 1848 dlg.Destroy() 1845 # event.StopPropagation()1846 1849 UpdateDrawAtoms() 1847 1850 G2plt.PlotStructure(G2frame,data) 
trunk/GSASIIplot.py
r757 r758 2358 2358 def OnKeyBox(event): 2359 2359 import Image 2360 Draw() #make sure plot is fresh!!2360 # Draw() #make sure plot is fresh!! 2361 2361 mode = cb.GetValue() 2362 2362 if mode in ['jpeg','bmp','tiff',]: … … 2380 2380 2381 2381 def OnKey(event): #on key UP!! 2382 Draw() #make sure plot is fresh!!2382 # Draw() #make sure plot is fresh!! 2383 2383 try: 2384 2384 keyCode = event.GetKeyCode() … … 2391 2391 if key in ['C']: 2392 2392 drawingData['viewPoint'] = [[.5,.5,.5],[0,0]] 2393 drawingData['viewDir'] = [0 .,0.,1]2393 drawingData['viewDir'] = [0,0,1] 2394 2394 drawingData['oldxy'] = [] 2395 drawingData['Quaternion'] = [0.0,0.0,1.0,0.0] 2395 V0 = np.array([0,0,1]) 2396 V = np.inner(Amat,V0) 2397 V /= np.sqrt(np.sum(V**2)) 2398 A = np.arccos(np.sum(V*V0)) 2399 Q = G2mth.AV2Q(A,[0,1,0]) 2400 drawingData['Quaternion'] = Q 2396 2401 SetViewPointText(drawingData['viewPoint'][0]) 2397 2402 SetViewDirText(drawingData['viewDir']) … … 2485 2490 else: 2486 2491 drawingData['oldxy'] = list(xy) 2487 Draw()2492 # Draw() 2488 2493 2489 2494 def OnMouseMove(event):
Note: See TracChangeset
for help on using the changeset viewer.