Changeset 85190c2 in sasmodels
- Timestamp:
- Apr 8, 2017 7:46:16 AM (8 years ago)
- Branches:
- master, core_shell_microgels, costrafo411, magnetic_model, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
- Children:
- 8678a34, 3a45c2c
- Parents:
- 44e8a93
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
explore/jitter.py
r1b693ba r85190c2 25 25 26 26 ax.plot_surface(x, y, z, rstride=4, cstride=4, color='y', alpha=0.5) 27 27 28 28 def 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] 30 30 view=[theta, phi, psi] 31 31 shimmy=[0,0,0] 32 32 #draw_shape = draw_parallelepiped 33 33 draw_shape = draw_ellipsoid 34 34 35 35 #np.random.seed(10) 36 #cloud = np.random.randn(10,3) 36 #cloud = np.random.randn(10,3) 37 37 cloud = [ 38 38 [-1, -1, -1], … … 121 121 points = Rz(dpsi)*Ry(dtheta)*Rx(dphi)*points 122 122 points = Rz(phi)*Ry(theta)*Rz(psi)*points 123 123 124 124 x,y,z = [np.array(v).flatten() for v in points] 125 125 ax.plot_trisurf(x, y, triangles=tri, Z=z, color='w', alpha=alpha)
Note: See TracChangeset
for help on using the changeset viewer.