# How can I plot the following set?

I have a question:

How can I plot the following set

$$G:=\{(x,y,z)\in\mathbb{R}^3|x^2+y^2\in[0,4],z\in[0,3]\}?$$

• Welcome to Mathematica.SE! I hope you will become a regular contributor. To get started, 1) take the introductory Tour now, 2) 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, 3) remember to accept the answer, if any, that solves your problem, by clicking the checkmark sign, and 4) give help too, by answering questions in your areas of expertise. – bbgodfrey May 28 '15 at 15:07
• Please add the code you have tried. – bbgodfrey May 28 '15 at 15:08

Use RegionPlot3D for 3D inequalities. You should get a cylinder.

RegionPlot3D[
0 <= x^2 + y^2 <= 4 && 0 <= z <= 3, {x, -3, 3}, {y, -3, 3}, {z, -1,  4},
PlotPoints -> 40]


Increase the PlotPoints for a better quality mesh. My code is:

RegionPlot3D[ 0 <= x^2 + y^2 <= 4 && 0 <= z <= 3, {x, -2, 2}, {y, -2, 2}, {z, 0, 3}] • Hi ! Please avoid "thank you"-style comments in the answer-only text boxes. – Sektor May 28 '15 at 18:08