【问题标题】:How to make range bar graphs in gnuplot?如何在gnuplot中制作范围条形图?
【发布时间】:2017-09-13 02:51:41
【问题描述】:

range bar graph 如何使用 gnuplot 制作类似于图像中显示的图形? 我想要一个条形图,其中每个条形都有最大值和最小值。 这在gnuplot中可能吗? 感谢您的帮助。

【问题讨论】:

  • 您可以使用例如boxxyerrorbars 的绘图风格

标签: gnuplot


【解决方案1】:

您正在寻找boxxyerrorbars 样式。

例如,给定一个包含内容的数据文件test.dat

#ymin  ymax
  2     4
  3     6
  1     4
  2     3

gnuplot 命令

boxwidth = 0.5
set style fill solid
set yrange [0:8]
plot "test.dat" u 0:(($1+$2)/2.):(boxwidth/2.):(($2-$1)/2.) w boxxyerrorbars

【讨论】:

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