D
D
dlinyj2020-09-01 13:11:26
3D
dlinyj, 2020-09-01 13:11:26

Gnuplot how to plot a 3d surface given coordinates?

There is such a coordinate file. https://pastebin.pl/view/98a08e81

...
0 237 5
0 238 5
0 239 5
0 240 1
0 241 1
0 242 1
0 243 1
...


Where is the x, y, z coordinate. I want to get the view surface.

with_pm3d_gray.png

I do

gnuplot> set pm3d
gnuplot> splot "./res.txt"


I get

5f4e1da9c0a2d538779191.jpeg

Plus another error:

Warning: Single isoline (scan) is not enough for a pm3d plot.
Hint: Missing blank lines in the data file? See 'help pm3d' and FAQ.


If you set

splot "./res.txt" with pm3d

That, it doesn't draw anything at all.

What am I doing wrong and how do I get a decent result with color changing depending on the z-height?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question