Changeset 1b693ba in sasmodels


Ignore:
Timestamp:
Apr 2, 2017 2:21:51 PM (9 months ago)
Author:
Paul Kienzle <pkienzle@…>
Branches:
master, boltzmann, costrafo411, doc_update, generic_integration_loop, ticket-1043, ticket-786
Children:
933af72
Parents:
782dd1f
Message:

tweak interface to orientation demo

File:
1 edited

Legend:

Unmodified
Added
Removed
  • explore/shimmy.py

    r782dd1f r1b693ba  
    6464        [ 1,  1,  1], 
    6565    ] 
     66    if dtheta == 0: 
     67        cloud = [v for v in cloud if v[0] == 0] 
     68    if dphi == 0: 
     69        cloud = [v for v in cloud if v[1] == 0] 
     70    if dpsi == 0: 
     71        cloud = [v for v in cloud if v[2] == 0] 
    6672    draw_shape(ax, size, view, shimmy, steps=100, alpha=0.8) 
    67     cloud = [] 
    6873    for point in cloud: 
    6974        shimmy=[dtheta*point[0], dphi*point[1], dpsi*point[2]] 
     
    196201    psi, dpsi = -45., 3. 
    197202    theta, phi, psi = 0, 0, 0 
     203    dtheta, dphi, dpsi = 0, 0, 0 
    198204    #dist = 'rect' 
    199205    dist = 'gauss' 
     
    203209    axphi = plt.axes([0.1, 0.1, 0.45, 0.04], axisbg=axcolor) 
    204210    axpsi = plt.axes([0.1, 0.05, 0.45, 0.04], axisbg=axcolor) 
    205     stheta = Slider(axtheta, 'Theta', -180, 180, valinit=theta) 
     211    stheta = Slider(axtheta, 'Theta', -90, 90, valinit=theta) 
    206212    sphi = Slider(axphi, 'Phi', -180, 180, valinit=phi) 
    207213    spsi = Slider(axpsi, 'Psi', -180, 180, valinit=psi) 
Note: See TracChangeset for help on using the changeset viewer.