# How do I animate a polar plot?

I have

r[θ_]:= Sin[θ/10]

ep[s_]:= PolarPlot[r[θ], {θ, 0, 2pi}, AxesLabel -> {“x”,”y”}]
Animate[ep[s], {s, 0, 2pi}, AnimationRunning -> False]

But all it outputs is the full graph of Sin[θ/10]. Nothing is animated even though it’s playing.

Replacing ep[s] with the full PolarPlot doesn’t and shouldn’t do anything.

Replacing ep[s] with Sin[θ/10] and range doesn’t do anything either.

It could be that I’m missing something really obvious- it’s like 2 AM right now.

Thanks

=================

2

There is no s in PolarPlot[r[θ], {θ, 0, 2pi}, AxesLabel -> {“x”,”y”}].
– Kuba
Sep 21 at 5:33

@Kuba is right, and in addition, you need to write ππ\pi as Pi (uppercase), when you don’t want to define it yourself.
– DPF
Sep 21 at 5:35

Welcome! I suggest the following: 1) As you receive help, try to give it too, by answering questions in your area of expertise. 2) Take the tour and check the faqs! 3) When you see good questions and answers, vote them up by clicking the gray triangles, because the credibility of the system is based on the reputation gained by users sharing their knowledge. Remember to accept the answer, if any, that solves your problem, by clicking the checkmark sign!
– Louis
Sep 21 at 6:37

=================

1

=================

r[θ_] := Sin[θ/10]

ep should only plot to its argument rather than 2Pi Use a fixed PlotRange

ep[s_] :=
PolarPlot[r[θ], {θ, 0, s}, AxesLabel -> {“x”, “y”},
PlotRange -> {{-.35, .6}, {-.5, .2}}]

s must start at a non-zero value

Animate[ep[s], {s, .01, 2 Pi}, AnimationRunning -> False]