Take the 2-minute tour ×
Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

enter image description here

How can I generate such an image and fill every annular sector with a random colour?

share|improve this question
1  
ParametricPlot[r {Cos[t], Sin[t]}, {t, 0, 2 Pi}, {r, 0, 5}, MeshShading -> {{Red, Blue}, {Yellow, Green}}] ? –  Szabolcs Feb 25 at 21:29
    
Thanks..@ Szabolcs –  user12609 Feb 26 at 9:11

1 Answer 1

up vote 9 down vote accepted

Hmm...Szabolcs beat me to it (in a comment) by one minute...

plot = ParametricPlot[r {Cos[t], Sin[t]}, {r, 0, 12}, {t, 0, 2 Pi}, 
   Mesh -> 23, Axes -> False, 
   MeshShading -> {{Red, Green}, {Blue, Yellow}}, 
   PlotRange -> {{-9, 9}, {-4, 4}}];

plot /. poly_Polygon :> {RGBColor @@ RandomReal[1, 3], poly}

Mathematica graphics

share|improve this answer
    
Thanks @Michael E2 –  user12609 Feb 26 at 9:11

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.