4
$\begingroup$
ContourPlot[{x^2+y^2==1, x^2+y^2==4, x^2+y^2==9},{x,-4,4},{y,-4,4},


ContourStyle->{Red,Blue,Green}]
$\endgroup$
4
$\begingroup$

ContourShading is the option to shade regions between contours.

ContourPlot[x^2 + y^2, {x, -4, 4}, {y, -4, 4}, 
 Contours -> {1, 4, 9}, ContourShading -> {Red, Blue, Green, None}]

enter image description here

|improve this answer|||||
$\endgroup$
  • $\begingroup$ Thank you so much. $\endgroup$ – Sahabub Jahedi Feb 19 at 6:05
2
$\begingroup$

You can use RegionPlot:

RegionPlot[{x^2+y^2<=9,x^2+y^2<4,x^2+y^2<=1},{x,-4,4},{y,-4,4},PlotStyle->{Red,Blue,Green}]

enter image description here

I also reversed the order of your expressions, so the smaller ones would show on top of larger ones.

|improve this answer|||||
$\endgroup$
  • $\begingroup$ Thank you so much. $\endgroup$ – Sahabub Jahedi Feb 19 at 6:45

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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