Display a cylindrical surface in 3D using gnuplot

Click For Summary
To display a cylindrical surface in 3D using gnuplot, the splot command is essential. For a simple cylinder defined by the equation x² + y² = 1, users can utilize the "set parametric" command to create parametric expressions for the x, y, and z coordinates. This approach allows for the effective representation of both cylindrical surfaces and vertical planes in gnuplot.
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.
 
Thread 'ChatGPT Examples, Good and Bad'
I've been experimenting with ChatGPT. Some results are good, some very very bad. I think examples can help expose the properties of this AI. Maybe you can post some of your favorite examples and tell us what they reveal about the properties of this AI. (I had problems with copy/paste of text and formatting, so I'm posting my examples as screen shots. That is a promising start. :smile: But then I provided values V=1, R1=1, R2=2, R3=3 and asked for the value of I. At first, it said...

Similar threads

  • · Replies 15 ·
Replies
15
Views
2K
Replies
5
Views
17K
  • · Replies 19 ·
Replies
19
Views
3K
  • · 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
1K
  • · Replies 4 ·
Replies
4
Views
3K