Display a cylindrical surface in 3D using gnuplot

  • Thread starter gnome
  • Start date
  • #1
1,036
1

Main Question or Discussion Point

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?
 
Last edited:

Answers and Replies

  • #2
dduardo
Staff Emeritus
1,898
3
try using the splot command.

for example:

gnuplot> splot -x**3 -y
 
  • #3
1,036
1
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?
 
  • #4
1,036
1
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.
 

Related Threads for: Display a cylindrical surface in 3D using gnuplot

  • Last Post
Replies
2
Views
2K
  • Last Post
Replies
3
Views
4K
  • Last Post
Replies
3
Views
1K
  • Last Post
Replies
1
Views
4K
Replies
4
Views
906
  • Last Post
Replies
5
Views
14K
  • Last Post
Replies
5
Views
2K
Top