Changeset 48438f9 in sasmodels for explore/jitter.py


Ignore:
Timestamp:
Apr 8, 2017 7:51:51 AM (7 years ago)
Author:
richardh
Branches:
master, core_shell_microgels, costrafo411, magnetic_model, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
Children:
3401a7a
Parents:
9b79f29 (diff), 85190c2 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

more docs change for new rotation angles

File:
1 moved

Legend:

Unmodified
Added
Removed
  • explore/jitter.py

    r1b693ba r85190c2  
    2525 
    2626    ax.plot_surface(x, y, z, rstride=4, cstride=4, color='y', alpha=0.5) 
    27      
     27 
    2828def draw_shimmy(ax, theta, phi, psi, dtheta, dphi, dpsi): 
    29     size=[0.1, 0.4, 1.0]  
     29    size=[0.1, 0.4, 1.0] 
    3030    view=[theta, phi, psi] 
    3131    shimmy=[0,0,0] 
    3232    #draw_shape = draw_parallelepiped 
    3333    draw_shape = draw_ellipsoid 
    34      
     34 
    3535    #np.random.seed(10) 
    36     #cloud = np.random.randn(10,3)  
     36    #cloud = np.random.randn(10,3) 
    3737    cloud = [ 
    3838        [-1, -1, -1], 
     
    121121    points = Rz(dpsi)*Ry(dtheta)*Rx(dphi)*points 
    122122    points = Rz(phi)*Ry(theta)*Rz(psi)*points 
    123          
     123 
    124124    x,y,z = [np.array(v).flatten() for v in points] 
    125125    ax.plot_trisurf(x, y, triangles=tri, Z=z, color='w', alpha=alpha) 
Note: See TracChangeset for help on using the changeset viewer.