Can gnuplot fetch plot data from remote locations (e.g. ftp servers)?

空扰寡人 提交于 2021-01-28 06:52:33

问题


Plotting a datafile with gnuplot works like

plot 'filename' using 1:2

Is it possible that 'filename' points to a remote location, e.g. http://example.com/data.txt or ftp://ftp.example.com/data.txt?

If so, does it work on Linux and Windows alike or are platform specific commands needed?


回答1:


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


来源:https://stackoverflow.com/questions/25593603/can-gnuplot-fetch-plot-data-from-remote-locations-e-g-ftp-servers

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!