我今天只是第一次看一下 gnuplot 并使用直方图示例,我想从教程中构建一个小示例,只是我将输入数字从 50,000 更改为 100 范围并且它没有正确可视化。这是dat文件
Region Denmark Netherlands Norway Sweden
1891-1900 500 400 300 200
这是 gnuplot 脚本
set terminal pngcairo
set output 'histograms.2.png'
set boxwidth 0.9 absolute
set style fill solid 1.00 border lt -1
set key inside right top vertical Right noreverse noenhanced autotitles nobox
set style histogram clustered gap 5 title offset character 0, 0, 0
set datafile missing '-'
set style data histograms
set xtics border in scale 0,0 nomirror rotate by -45 offset character 0, 0, 0
set xtics norangelimit font ",8"
set xtics ()
set title "US immigration from Northern Europe\n(same plot with larger gap between clusters)"
set yrange [ 0.00000 : 3000. ] noreverse nowriteback
i = 22
plot 'immigration.dat' using 1:xtic(1) ti col, '' u 2 ti col, '' u 3 ti col, '' u 4 ti col
如此处所示:
第一列被错误地可视化。有任何想法吗?!