【问题标题】:Make gnuplot remove unnecessary text from the graph使 gnuplot 从图中删除不必要的文本
【发布时间】:2015-01-15 02:21:50
【问题描述】:

这是我的脚本

set title "Frequency graph"
set xlabel "Words"
set ylabel "Frequency"

set boxwidth 0.5
set style fill solid
plot "gnuplot.data" using 1:3:xtic(2) with boxes


pause -1 "Hit any key to continue"

基于this 的回答。

结果是这样的: 你看,我希望使用 1:3:xtic(2) 的“gnuplot.data”和红色水平条消失。如何实现?

【问题讨论】:

    标签: gnuplot


    【解决方案1】:

    plot 命令之前插入一行set key off

    【讨论】:

    • 谢谢DragonHu,真是简洁的回答!
    • 更多set key选项,在gnuplot命令界面输入help key
    • 或者,您可以在绘图命令中添加notitle 选项,即plot "gnuplot.data" using 1:3:xtic(2) with boxes notilte
    【解决方案2】:

    你可以

    plot "gnuplot.data" using 1:3:xtic(2) with boxes title ""
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-04-24
      • 1970-01-01
      • 1970-01-01
      • 2018-10-07
      • 1970-01-01
      相关资源
      最近更新 更多