【问题标题】:gnuplot to plot histogram with linesgnuplot 用线条绘制直方图
【发布时间】:2011-06-22 23:32:21
【问题描述】:

我有两列数据:

9   17.52
11  29.77
7   62.75
11  36.15
7   30.46
7   52.5
9   65.26
9   90.05
14  101.87
12  86.88
15  74.78

并希望根据 y2 的索引将第一列绘制为直方图,并根据 y1 的索引将第二列绘制为直线。有人有想法吗?

【问题讨论】:

  • 数据为:9 17.52; 11 29.77; 7 62.75; 11 36.15;
  • y1 和 y2 是什么?列的名称?

标签: line gnuplot histogram


【解决方案1】:

也许我没有正确理解你的问题,但你可能正在寻找这样的东西:

set style fill solid border -1
set boxwidth 0.4

plot "Data.dat" u 2 w boxes t "boxes", "" u (column(0)):1 t "lines" w l 

?

【讨论】:

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