Changeset 758 for trunk/GSASIIplot.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/GSASIIplot.py

    r757 r758  
    23582358    def OnKeyBox(event):
    23592359        import Image
    2360         Draw()                          #make sure plot is fresh!!
     2360#        Draw()                          #make sure plot is fresh!!
    23612361        mode = cb.GetValue()
    23622362        if mode in ['jpeg','bmp','tiff',]:
     
    23802380
    23812381    def OnKey(event):           #on key UP!!
    2382         Draw()                          #make sure plot is fresh!!
     2382#        Draw()                          #make sure plot is fresh!!
    23832383        try:
    23842384            keyCode = event.GetKeyCode()
     
    23912391        if key in ['C']:
    23922392            drawingData['viewPoint'] = [[.5,.5,.5],[0,0]]
    2393             drawingData['viewDir'] = [0.,0.,1]
     2393            drawingData['viewDir'] = [0,0,1]
    23942394            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
    23962401            SetViewPointText(drawingData['viewPoint'][0])
    23972402            SetViewDirText(drawingData['viewDir'])
     
    24852490        else:
    24862491            drawingData['oldxy'] = list(xy)
    2487         Draw()
     2492#        Draw()
    24882493       
    24892494    def OnMouseMove(event):
Note: See TracChangeset for help on using the changeset viewer.