问题
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