【问题标题】:Gnuplot from a standard shell without entering gnuplot interactive shell来自标准 shell 的 Gnuplot,无需进入 gnuplot 交互式 shell
【发布时间】:2017-04-07 15:05:00
【问题描述】:

是否可以在不进入 gnuplot 交互式 shell 的情况下从标准 shell 运行 gnuplot?

我只想能够从我的标准 shell 中在一行中键入我的 gnuplot 命令,并且能够将标准 gnuplot 保存为别名。目前我必须创建 .sh 文件来编写我的命令,这非常糟糕。

【问题讨论】:

    标签: shell gnuplot


    【解决方案1】:

    你是说

    echo "plot sin(x)" | gnuplot -p
    

    echo -e "set term png\n set output 'alma.png'\n plot sin(x)\n" | gnuplot
    

    ?

    echo | gnuplot -p -e "plot sin(x)" 
    

    (克里斯托夫的最后一张)

    【讨论】:

    • 不用echo:gnuplot -p -e "plot sin(x)"
    • @Christoph 你是对的。但你的意思是echo | gnuplot -p -e "plot sin(x)" 不是吗?
    • 太棒了!正是我需要的。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2012-02-23
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-07-24
    相关资源
    最近更新 更多