PDA

View Full Version : Gnuplot


gnome
Nov27-03, 01:03 PM
I'm just beginning to learn to use gnuplot & can't figure out how to display a cylindrical surface in 3D.

Even a simple one like x2 + y2 = 1

Oh, and how about a vertical plane?

Anybody know how to do this?

dduardo
Nov27-03, 04:03 PM
try using the splot command.

for example:

gnuplot> splot -x**3 -y

gnome
Nov27-03, 08:23 PM
gnuplot> splot -x**3 -y ???????????

Thanks, dduardo, but while z = x**3 -y is a surface, it's not a vertical surface & certainly not a cylinder.

I know about the splot command -- I just can't think of a gnuplot-valid expression for a vertical plane or cylinder.

Any ideas about that specifically?

gnome
Nov28-03, 03:13 PM
Ah....

If anyone's interested, I found that this can be done by using the "set parametric" command & then giving it parametric expressions for the x, y & z coordinates.