Gnuplot 无法识别命令 0x9

Car*_*los 0 gnuplot

我需要使用 gnuplot 在 .dat 文档中绘制数据。我试图绘制的数据在文件 outfile.dat 中表示,如下所示(一个小示例):

0.900   500.000 100.000
1.900   500.000 100.000
2.900   500.000 100.000
3.900   500.000 100.000
4.900   500.000 100.000
5.900   500.000 100.000
6.900   500.000 100.000
7.900   500.000 100.000
8.900   500.000 100.000
9.900   500.000 100.000
10.900  500.000 100.000
Run Code Online (Sandbox Code Playgroud)

正如您所看到的,每列之间都有一个制表符分隔。根本不是什么罕见的角色。当我尝试用以下命令绘制该文件时

plot "outfile.dat" using 1:2
Run Code Online (Sandbox Code Playgroud)

我收到以下错误:

libplot error: flinewidth: invalid operation
plot: an unrecognized command `0x9' was encountered in the input
plot: the input file `salida.dat' could not be parsed
Run Code Online (Sandbox Code Playgroud)

为什么我会收到此错误?我做错了什么?谢谢。

Eri*_*nil 6

我想我明白了。

您没有使用 gnuplot ,而是使用了plotutils

您首先需要在终端中启动 gnuplot,使用gnuplot. 然后您可以plot "outfile.dat" using 1:2在 gnuplot 中启动,而不是在终端中启动。