I would like to make a 3D plot with gnuplot using the interface.txt file (File).
Knowing that I have a y-axis rotation invariance.
This figure represents a 2D section (plot 'interface.txt' u 2:1)
Here's what I'd like to have with gnuplot but I don't know how to plot it.
I would like to get this picture but for theta = [0:2*pi].
I tried this code but for now i don't know how to plot it
reset
set angles degrees
set mapping cylindrical
splot for [t=1:360:2] 'interface.txt' u t:1:(sqrt($2**2+$1**2))
If you have any idea ? Thanks you !
I'm not sure whether the example below satisfies your expectations. Since your original curve is not closed, this is not a body but a surface. For
pm3d
to do the "connections" between the rotated curves, I guess you have to have add a single empty line between the rotated curves. You can get this with the "trick" of plotting a dummy array with one element:plot A u ("") w table
. I hope that there are better solutions.Code:
Result: