【问题标题】:gnuplot error: Cannot open script file 'plot Deaths.txt with dots'gnuplot 错误:无法打开脚本文件“用点绘制 Deaths.txt”
【发布时间】:2019-04-29 16:05:37
【问题描述】:

我正在关注此网页上的教程 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'

我的终端类型:画布

【问题讨论】:

  • 谢谢,我已经知道出了什么问题。 -persist 和脚本之间应该有一个 -e

标签: shell gnuplot


【解决方案1】:

正确的命令:

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

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

   -e "command list" executes the requested commands  before  loading  the
   next input file.

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2013-12-02
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多