Ask Your Question

heptadecagon's profile - activity

2018-04-11 18:31:50 +0200 received badge  Student (source)
2015-01-23 21:53:25 +0200 received badge  Famous Question (source)
2013-09-15 12:43:20 +0200 received badge  Notable Question (source)
2013-03-12 13:00:47 +0200 received badge  Popular Question (source)
2012-08-07 18:29:49 +0200 commented answer level/contour curves in 3D

Thanks for the solution, though, like you said, it's a little bit of a hack.

2012-08-07 18:29:07 +0200 received badge  Supporter (source)
2012-08-07 18:28:45 +0200 received badge  Scholar (source)
2012-08-07 18:28:45 +0200 marked best answer level/contour curves in 3D

Below is a bit of a hack, but I think it does what you want.

var('x,y,z')
f(x,y)=x^2+3*y^2
levels=[1,2,3,4]
epsilon=0.1
p=plot3d(f(x,y),(x,-2,2),(y,-2,2),color='khaki',opacity=0.7)
for h in levels:
    p+=implicit_plot3d(f(x,y)==h,(x,-2,2),(y,-2,2),(z,h,h+epsilon))

show(p)

image description

2012-08-02 18:40:58 +0200 commented answer level/contour curves in 3D

Thanks, that looks interesting but I would rather avoid having to use gnuplot.

2012-08-02 18:10:29 +0200 received badge  Editor (source)
2012-08-02 18:08:52 +0200 commented answer level/contour curves in 3D

Indeed, what I'd like to see is a 3D plot with level curves (**not surfaces**). We start with a function of 2 variables (**not three**) and I'd like to see the 'exploded' contour plot so that the level curves are graphed at their respective $z$-altitudes. Makes sense?

2012-08-01 19:52:54 +0200 asked a question level/contour curves in 3D

Is there a way to graph level curves of a function $f(x,y)$ in 3D at their respective heights? (Much like contourplot3d in Maple.) Thanks.

To make things clearer: what I'd like to see is a 3D plot with level curves (not surfaces). We start with a function of 2 variables (not three) and I'd like to see the 'exploded' contour plot so that the level curves are graphed at their respective z-altitudes. Makes sense?