I want to make a GIF of the image that I get from these lines. (It should be a vector field with the shape of a cylinder).
I added the command DynamicModule for getting a clip but I wasn't able to create a GIF image.
Can anybody help me?
The file data is here: http://pastebin.com/raw/rjM2i5Jt.
table = Import["http://pastebin.com/raw/rjM2i5Jt", "Table", "IgnoreEmptyLines" -> True];
X = table[[;; , ;; 3]];
V = table[[;; , 4 ;; 6]];
g = Graphics3D[{Arrowheads@.015, Arrow@Transpose[{X, X + .07 Normalize /@ V}]},
BoxRatios -> {1, 1, 1}, PlotRange -> All, ViewPoint -> {1, 1, 1},
ViewVertical -> {0, 1, 0}, Boxed -> False
];
center = Mean /@ (PlotRange /. AbsoluteOptions[g, PlotRange])
DynamicModule[{θ},
DynamicWrapper[
MapAt[
GeometricTransformation[#, RotationTransform[Dynamic[θ], {0, 1, 1}, center]] &,
g,
1
],
θ = Clock[{0, 2 π, .01}, 10]
]
]
Importcommand does not seem to work for me. Could you correct it so that we can easily import your data and use the tablesXandY? – jibe Sep 16 '16 at 14:03ViewVector -> {2.5 {Cos@t, Sin@t, 1}, {0, 0, 0}}like in 46359 – Kuba Sep 16 '16 at 14:36table = Import["http://pastebin.com/raw/rjM2i5Jt", "Table", "IgnoreEmptyLines" -> True];
X = table[[;; , ;; 3]]; V = table[[;; , 4 ;; 6]];
g = Graphics3D[{Arrowheads@.015, Arrow@Transpose[{X, X + .07 Normalize /@ V}]}, BoxRatios -> {1, 1, 1}, PlotRange -> All, ViewPoint -> {1, 1, 1}, ViewVertical -> {0, 1, 0}, Boxed -> False]
– Franco Di Rino Sep 16 '16 at 16:08