更新时间:2023-12-02 20:12:16
可以将文件读入数据块,只要您知道输入数据格式。例如,您有一个文件 MyFile1
,其中有3列数字要读取到数据块 MyBlock1
中,然后进行绘图三种方式:
It is possible to read a file into a datablock, provided you know the input data format. For example, you have a file MyFile1
with numbers in 3 columns which you want to read into datablock MyBlock1
, then plot in 3 ways:
set table $MyBlock1
plot "MyFile1" using 1:2:3 with table
unset table
plot $MyBlock1 using 1:2 with points
plot $MyBlock1 using 2:3 with points
plot $MyBlock1 using 1:3 with lines
这样可以避免多次读取文件,并且应该可以在任何平台上使用。而不是这样做,我想将文件从慢速文件系统复制到本地文件系统会更简单。
This avoids reading the file several times, and should presumably work on any platform. Rather than doing this, I imagine it would be simpler to just copy your files from your slow filesystem to a local filesystem.