Display a cylindrical surface in 3D using gnuplot

Click For Summary

Discussion Overview

The discussion focuses on how to display a cylindrical surface and a vertical plane in 3D using gnuplot. Participants explore commands and expressions relevant to visualizing these geometric shapes.

Discussion Character

  • Exploratory
  • Technical explanation
  • Homework-related

Main Points Raised

  • One participant expresses difficulty in using gnuplot to display a cylindrical surface defined by the equation x² + y² = 1.
  • Another participant suggests using the splot command but provides an example that does not pertain to a cylinder or vertical surface.
  • A later reply clarifies that while the provided example creates a surface, it does not meet the criteria for a vertical surface or cylinder.
  • One participant discovers that using the "set parametric" command allows for the creation of parametric expressions for the x, y, and z coordinates to achieve the desired display.

Areas of Agreement / Disagreement

Participants do not reach a consensus on the specific gnuplot expressions needed for displaying a cylindrical surface or vertical plane, and multiple approaches are discussed without resolution.

Contextual Notes

Limitations include the lack of specific gnuplot expressions for the cylindrical surface and vertical plane, as well as the dependence on the understanding of gnuplot commands and syntax.

gnome
Messages
1,031
Reaction score
1
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:
Computer science news on Phys.org
try using the splot command.

for example:

gnuplot> splot -x**3 -y
 
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?
 
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.
 

Similar threads

  • · Replies 15 ·
Replies
15
Views
3K
Replies
5
Views
17K
  • · Replies 10 ·
Replies
10
Views
3K
  • · Replies 19 ·
Replies
19
Views
4K
  • · Replies 18 ·
Replies
18
Views
2K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K