I have this:
Graphics[{
Circle[],
Line[{0.9 {Cos[π/2], Sin[π/2]}, {Cos[π/2], Sin[π/2]}}],
Text["0", 1.2 {Cos[π/2], Sin[π/2]}],
Line[{0.9 {Cos[11 π/6], Sin[11 π/6]}, {Cos[11 π/6], Sin[11 π/6]}}],
Text["1", 1.2 {Cos[11 π/6], Sin[11 π/6]}],
Line[{0.9 {Cos[7 π/6], Sin[7 π/6]}, {Cos[7 π/6], Sin[7 π/6]}}],
Text["2", 1.2 {Cos[7 π/6], Sin[7 π/6]}]
}, ImageSize -> 200
]
Which gives this image:
Now, I'd like to visualize Mod[5, 3]
, starting with an arrow at $0$, then rotating around the outside of the circle in the clockwise direction, counting 1, 2, 3, 4, 5 as I pass each tick number, then halting the arrow.
And I think the preference would be that the distance of the arrow from the center of the circle increases as I move so it doesn't overly itself as it goes.
Any suggestions?
Update I managed to do this:
modularcount = Graphics[{
Circle[],
Line[{0.9 {Cos[\[Pi]/2], Sin[\[Pi]/2]}, {Cos[\[Pi]/2],
Sin[\[Pi]/2]}}],
Text["0", 0.8 {Cos[\[Pi]/2], Sin[\[Pi]/2]}],
Line[{0.9 {Cos[11 \[Pi]/6], Sin[11 \[Pi]/6]}, {Cos[11 \[Pi]/6],
Sin[11 \[Pi]/6]}}],
Text["1", 0.8 {Cos[11 \[Pi]/6], Sin[11 \[Pi]/6]}],
Line[{0.9 {Cos[7 \[Pi]/6], Sin[7 \[Pi]/6]}, {Cos[7 \[Pi]/6],
Sin[7 \[Pi]/6]}}],
Text["2", 0.8 {Cos[7 \[Pi]/6], Sin[7 \[Pi]/6]}]
}, ImageSize -> 200];
plt = PolarPlot[1.1 + 0.03 t, {t, Pi/2, Pi/2 + 10 Pi/3},
PlotStyle -> Red] /. Line -> Arrow;
Show[modularcount, plt,
Graphics[{Red, Line[{{0, 1.1}, {0, 1.2}}]}]]
I've put the numbers inside. Which gives this image:
So I have a good solution when moving counterclockwise, but I haven't figured out how to go clockwise yet.
Second Update: Thanks to Quantum_Oli, I now have this:
Show[modularcount, Graphics[First[plt] /. {x_, y_} :> {-x, y}],
Graphics[{Red, Line[{{0, 1.1}, {0, 1.2}}]}]]
Which gives this image:
plt
in yourShow
withGraphics[First[plt] /. {x_, y_} :> {-x, y}]
. Saves having to change anything else. $\endgroup$Experimental`AngularSlider[2/5 Pi 16 ]
$\endgroup$