I am trying to plot a set of concentric green dashed circles and a green ray.
I was able to produce the desired result using ContourPlot
b = Range[4, 10, 2];
Animate[Show[
ContourPlot[{x^2 + y^2 == b^2, y = a x}, {x, -10, 10}, {y, -10, 10},
Axes -> True,
ContourStyle -> {Directive[Lighter[Green], Dashed], Darker[Green]},
PerformanceGoal -> "Quality"],
ParametricPlot[{a Cos[\[Theta]], a Sin[\[Theta]]}, {a, 0, 10},
PlotStyle -> Darker@Green]], {\[Theta], 0, 2 \[Pi], 0.01}]
but then I read on the wolfram guide that I should use ParametricPlot
to plot the curves so I tried using it but no matter what i do PlotStyle does not change the color of the circles
b = Range[4, 10, 2]
{4, 6, 8, 10}
ParametricPlot[{{# Cos[\[Theta]], # Sin[\[Theta]]} & /@ b, {f Cos[0],
f Sin[0]}}, {\[Theta], 0, 2 \[Pi]}, {f, 0, 10}, PlotStyle -> Green,
Axes -> False]
mathematica keeps plotting them blue
what can i do to fix this behavior?
ParametricPlot[]
for this simple case:Graphics[{Green, Circle[{0, 0}, #] & /@ Range[4, 10, 2], Line[{{0, 0}, {10, 0}}]}]
$\endgroup$