Message Boards Message Boards

0
|
3370 Views
|
3 Replies
|
3 Total Likes
View groups...
Share
Share this post:

How to graph 2D function in a 3D plot?

Posted 3 years ago

Hi, I wanto to graph, Plot[Sqrt[4-x^2], {x, 0, 2}], but I want to see that graph in 3D?

How can I do that?

I want to create something like this graph.
Grafico

I wanto to graph, Plot[Sqrt[4-x^2], {x, 0, 2}], but I want to see that graph in 3D?

How can I do that?

POSTED BY: Victor Perdomo
3 Replies
Posted 3 years ago

Thanks you, so much! My paper will be more easy to understand with this plot.

POSTED BY: Victor Perdomo
Posted 3 years ago

An alternative, combining two plots with Show:

Show[
    ParametricPlot3D[
     {0, u, v}, {u, 0, 1}, {v, 0, 2 u},
     Mesh -> None, PlotStyle -> Green
    ],
    ParametricPlot3D[
     v {Cos[u], Sin[u], 0}, {u, 0, \[Pi]/2}, {v, 0, 1},
     Mesh -> None, PlotStyle -> Green
    ],
    Boxed -> False, AxesOrigin -> {0, 0, 0},
    ViewPoint -> 7 {0.2, 0.2, 0.1}
 ]

enter image description here

POSTED BY: Hans Milton

Victor, does this come close to what you want?

Plot3D[Sqrt[4 - x^2 - y^2], {x, 0, 2}, {y, 0, 2}, BoxRatios -> Automatic, ImageSize -> 500, Filling -> Bottom, FillingStyle -> Directive[Opacity[.3], Blue]]

enter image description here

POSTED BY: Henrik Schachner
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract