【发布时间】:2012-07-24 18:34:33
【问题描述】:
我想可视化位图文件中不同颜色的数量。
我的数据表如下所示:
1 163073164
4 185122087
3 255242000
8 255255255
3 000162232
1 181230029
1 127127127
1 136000021
3 200191231
我想使用 gnu plot histogram style 绘制每个颜色条都有自己的颜色。
我只是尝试使用“lc 变量”,但它不起作用。 :-(
我现在的 GNUPLOT 脚本:
set style data histograms
set boxwidth 1
set grid
set style histogram cluster gap 0
set style fill solid 1.0 border -1
set yrange [0:*]
set xrange [0:*]
set xtics border in scale 0,10 nomirror rotate by -45 offset character 0, 0, 0 left
plot "histo.dat" using 1:xticlabels(2) lc variable no title
#EOF
我收到此错误消息:
gnuplot> plot "histo.dat" using 1:xticlabels(2) lc variable no title
^
"histo.plt", line 9: Bad data on line 1
谁能给我一个提示或正确的命令?
最好的问候罗伯特
【问题讨论】: