Changeset 758 for trunk/GSASIIphsGUI.py


Ignore:
Timestamp:
Sep 16, 2012 3:16:27 AM (10 years ago)
Author:
vondreele
Message:

fix in sph. harm. for hex/rhom/trig
fix for view dir in plots
remove a few extra Draw() in structure plotting

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIphsGUI.py

    r757 r758  
    15661566            'vdwScale':0.67,'ellipseProb':50,'sizeH':0.50,'unitCellBox':False,
    15671567            '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])
    15701574        try:
    15711575            drawingData = data['Drawing']
     
    18431847                        drawAtoms.SetAttr(i,cs+2,attr)
    18441848                    dlg.Destroy()
    1845 #                    event.StopPropagation()
    18461849                    UpdateDrawAtoms()
    18471850            G2plt.PlotStructure(G2frame,data)
Note: See TracChangeset for help on using the changeset viewer.