2012-08-02 131 views
0

我正在使用gnuplot繪製以下數據文件的直方圖。使用gnuplot繪製詞頻直方圖

data.txt 
========= 
countries  1 
domestic  1 
fourth-largest 3 
in  4 
airline 5 
and  8 
destinations 3 

我想繪製詞頻(y軸)對詞(x軸)的直方圖。

+0

爲了使水平直方圖,您還可以看到我的回答[這個問題] [1]。 [1]:http://stackoverflow.com/questions/10823873/how-to-make-an-horizo​​ntal-box-and-whiskers-plot-in-gnuplot/ – andyras 2012-08-02 19:48:27

回答

0

發現這一點:

set xtics border in scale 1,0.5 nomirror rotate by -90 offset character 0, 0, 0 
plot "data.txt" using 2:xticlabels(1) with histogram