如何使用文本文件中包含的 x、y、z 数据在 gnuplot 中绘制 3D 线图?

How to do a 3D line plot in gnuplot using x, y, z data contained in a text file?

我有一个包含格式数据的文本文件(名为 lorenz-phase.txt,您可能猜到它是洛伦兹方程的解):

1 1 1
1.01257 1.25992 0.984891
1.04882 1.524 0.973114
1.10721 1.79831 0.965159
1.18687 2.08854 0.961737

等等,其中第一列是我的 x 值,第二列是我的 y 值,第三列是我的 z 值。我想使用 gnuplot 绘制此数据的 3D 线图。这可能吗?它是如何完成的? Google 在这方面没有给我答案,因为我能找到的图是参数函数描述的图。

对 3d 图使用 splot 命令,对直线使用 with lines 命令:

splot "lorenz-phase.txt" using 1:2:3 with lines

我的第一个 google 关键词 gnuplot 3d line 结果是 this one