gnuplot错误:无法打开脚本文件“带有点的plot Deaths.txt”

时间:2019-04-29 16:05:37

标签: shell gnuplot

我正在关注此网页上的教程 https://subscription.packtpub.com/book/big_data_and_business_intelligence/9781849517249/1/ch01lvl1sec14/making-a-scatterplot

但是当我编写自己的脚本时

wget -O Deaths.txt http://www.randomservices.org/random/data/Deaths.txt
gnuplot -persist 'plot 'Deaths.txt' with dots'

有错误:

line 0: Cannot open script file 'plot Deaths.txt with dots'

我的终端类型:画布

1 个答案:

答案 0 :(得分:0)

正确的命令:

gnuplot -persist -e "plot 'Deaths.txt' with dots"

在运行脚本之前,我们需要一个-e (来自man gnuplot)

   -e "command list" executes the requested commands  before  loading  the
   next input file.
相关问题