gnuplot可以从远程位置(例如ftp服务器)获取绘图数据吗? [英] Can gnuplot fetch plot data from remote locations (e.g. ftp servers)?
问题描述
使用gnuplot绘制数据文件的方式类似于
Plotting a datafile with gnuplot works like
plot 'filename' using 1:2
文件名"
是否可能指向远程位置,例如 http://example.com/data.txt
或 ftp://ftp.example.com/data.txt
?
Is it possible that 'filename'
points to a remote location, e.g. http://example.com/data.txt
or ftp://ftp.example.com/data.txt
?
如果可以,它是否可以在Linux和Windows上运行,还是需要特定于平台的命令?
If so, does it work on Linux and Windows alike or are platform specific commands needed?
推荐答案
否,您不能直接通过HTTP或FTP从远程位置打开文件.您需要使用与系统有关的命令行程序来即时获取数据文件,例如 GET
程序.链接轴演示中也使用了此方法.
No, you cannot directly open a file from a remote location via HTTP or FTP. You'll need to use a system-dependent command line program to fetch a data file on-the-fly, like the GET
program. This is also used in the linkedaxes demo.
因此,通常,您将拥有一个类似
So in general, you'll have a command like
plot '< GET http://example.com/data.txt' using 1:2
这篇关于gnuplot可以从远程位置(例如ftp服务器)获取绘图数据吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!