小编use*_*847的帖子

GNUPLOT每个直方图条具有不同的颜色

我想要可视化位图文件的不同颜色的数量.

我的数据表看起来像:

1 163073164
4 185122087
3 255242000
8 255255255
3 000162232
1 181230029
1 127127127
1 136000021
3 200191231
Run Code Online (Sandbox Code Playgroud)

我想用gnu plot直方图样式绘制每个颜色条都有自己的颜色.

我只是尝试使用"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
Run Code Online (Sandbox Code Playgroud)

我有这个错误信息:

gnuplot> plot …
Run Code Online (Sandbox Code Playgroud)

gnuplot bitmap histogram

10
推荐指数
1
解决办法
8290
查看次数

标签 统计

bitmap ×1

gnuplot ×1

histogram ×1