微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

gnuplot绘制聚类直方图时出错

如何解决gnuplot绘制聚类直方图时出错

我正在尝试使用gnuplot从Clustered bar plot in gnuplot复制群集的直方图。

我这样使用gnuplot脚本:

set terminal pdf enhanced
set output 'bar.pdf'

set style data histogram
set style histogram cluster gap 1

set style fill solid border rgb "black"
set auto x
set yrange [0:*]
plot 'info.dat' using 2:xtic(1) title col,\
        '' using 3:xtic(1) title col,\
        '' using 4:xtic(1) title col,\
        '' using 5:xtic(1) title col,\
        '' using 6:xtic(1) title col
set out

info.dat完全像这样:

broswer Video   Audio   Flash   HTML    JavaScript
IE      30%     10%     25%     20%     15%
Chrome  20%     5%      35%     30%     10%

不幸的是,生成文件具有以下错误

enter image description here

如您所见,主要错误是,键框,x轴标题,y轴范围不会显示。我怀疑有什么我不知道的特定数据文件格式吗?还是因为其他原因?非常感谢您的帮助。

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。