gnuplot在绘制聚集直方图时出错

gnuplot在绘制聚集直方图时出错,gnuplot,Gnuplot,我试图通过使用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

我试图通过使用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
Broswer Video   Audio   Flash   HTML    JavaScript
IE      30%     10%     25%     20%     15%
Chrome  20%     5%      35%     30%     10%
info.dat
正是这样:

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
Broswer Video   Audio   Flash   HTML    JavaScript
IE      30%     10%     25%     20%     15%
Chrome  20%     5%      35%     30%     10%
不幸的是,生成的文件有如下错误:

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
Broswer Video   Audio   Flash   HTML    JavaScript
IE      30%     10%     25%     20%     15%
Chrome  20%     5%      35%     30%     10%


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

您的代码在wxt和pdf终端中运行良好。您的操作系统和gnuplot版本是什么?您是否在开始时尝试过
重置会话
?我尝试过重置会话,但没有成功。我用的是MacBook,gnuplot版本是5.4.0_1,不需要升级。如果你尝试在其他终端wxt,qt,x11。。。?它可能是pdf格式的。你检查过这个了吗?也许是同一个问题。。。。?非常感谢你的帮助。事实上,这是一个类似的问题。其中一个依赖项包存在错误并导致此问题。只要降解那个包,它就可以工作了