Changeset 1b693ba in sasmodels
- Timestamp:
- Apr 2, 2017 2:21:51 PM (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:
- 933af72
- Parents:
- 782dd1f
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
explore/shimmy.py
r782dd1f r1b693ba 64 64 [ 1, 1, 1], 65 65 ] 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] 66 72 draw_shape(ax, size, view, shimmy, steps=100, alpha=0.8) 67 cloud = []68 73 for point in cloud: 69 74 shimmy=[dtheta*point[0], dphi*point[1], dpsi*point[2]] … … 196 201 psi, dpsi = -45., 3. 197 202 theta, phi, psi = 0, 0, 0 203 dtheta, dphi, dpsi = 0, 0, 0 198 204 #dist = 'rect' 199 205 dist = 'gauss' … … 203 209 axphi = plt.axes([0.1, 0.1, 0.45, 0.04], axisbg=axcolor) 204 210 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) 206 212 sphi = Slider(axphi, 'Phi', -180, 180, valinit=phi) 207 213 spsi = Slider(axpsi, 'Psi', -180, 180, valinit=psi)
Note: See TracChangeset
for help on using the changeset viewer.