Hi, I want to animate the rotation of a generated plot but have the (0,0) point of the plot stay stationary during the animation. Is there a way to do this? In what I have tried the resultig graphic is always left justified to its boundingbox and this results in the animation bouncing sideways for each corner of the plot.
Here is what I’m trying to develop. It’s a simulation of the coriolis effect, the plot is the particle’s trajectory in the rotating co-ordinate system and I want to rotate the entire plot so that you would see it in the non-rotating co-ordinate system. So the animation should produce a particle moving in a straight line on the notebook but following the loops and spirals of the plotted trajectory on the graph:
cor[tt_] := Show[{
ParametricPlot[{1/
2 E^(-I t \[Omega]) (x0 + E^(2 I t \[Omega]) x0 + I y0 -
I E^(2 I t \[Omega]) y0 + I t x0 \[Omega] -
I E^(2 I t \[Omega]) t x0 \[Omega] - t y0 \[Omega] -
E^(2 I t \[Omega]) t y0 \[Omega] + t v0 Cos[\[Theta]0] +
E^(2 I t \[Omega]) t v0 Cos[\[Theta]0] +
I t v0 Sin[\[Theta]0] -
I E^(2 I t \[Omega]) t v0 Sin[\[Theta]0]),
1/2 E^(-I t \[Omega]) (-I x0 + I E^(2 I t \[Omega]) x0 + y0 +
E^(2 I t \[Omega]) y0 + t x0 \[Omega] +
E^(2 I t \[Omega]) t x0 \[Omega] + I t y0 \[Omega] -
I E^(2 I t \[Omega]) t y0 \[Omega] - I t v0 Cos[\[Theta]0] +
I E^(2 I t \[Omega]) t v0 Cos[\[Theta]0] +
t v0 Sin[\[Theta]0] +
E^(2 I t \[Omega]) t v0 Sin[\[Theta]0])} /. {\[Omega] ->
0.355, v0 -> 2.75, \[Theta]0 -> 2.15, x0 -> -5.9,
y0 -> -4.8}, {t, 0, 60}, PlotRange -> {{-10, 10}, {-10, 10}},
Frame -> False, AspectRatio -> 1, BaselinePosition -> Center],
Graphics[
Disk[{1/2 E^(-I t \[Omega]) (x0 + E^(2 I t \[Omega]) x0 + I y0 -
I E^(2 I t \[Omega]) y0 + I t x0 \[Omega] -
I E^(2 I t \[Omega]) t x0 \[Omega] - t y0 \[Omega] -
E^(2 I t \[Omega]) t y0 \[Omega] + t v0 Cos[\[Theta]0] +
E^(2 I t \[Omega]) t v0 Cos[\[Theta]0] +
I t v0 Sin[\[Theta]0] -
I E^(2 I t \[Omega]) t v0 Sin[\[Theta]0]),
1/2 E^(-I t \[Omega]) (-I x0 + I E^(2 I t \[Omega]) x0 + y0 +
E^(2 I t \[Omega]) y0 + t x0 \[Omega] +
E^(2 I t \[Omega]) t x0 \[Omega] + I t y0 \[Omega] -
I E^(2 I t \[Omega]) t y0 \[Omega] -
I t v0 Cos[\[Theta]0] +
I E^(2 I t \[Omega]) t v0 Cos[\[Theta]0] +
t v0 Sin[\[Theta]0] +
E^(2 I t \[Omega]) t v0 Sin[\[Theta]0])} /. {\[Omega] ->
0.355, v0 -> 2.75, \[Theta]0 -> 2.15, x0 -> -5.9,
y0 -> -4.8} /. t -> tt, .4]]
}]
Animate[Rotate[cor[t], \[Omega] t /. \[Omega] -> 0.355, {0, 0}], {t,
0, 60}, DefaultDuration -> 15]
