使用gnuplot绘制词频直方图
问题描述:
我正在使用gnuplot绘制以下数据文件的直方图。使用gnuplot绘制词频直方图
data.txt
=========
countries 1
domestic 1
fourth-largest 3
in 4
airline 5
and 8
destinations 3
我想绘制词频(y轴)对词(x轴)的直方图。
答
发现这一点:
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
为了使水平直方图,您还可以看到我的回答[这个问题] [1]。 [1]:http://stackoverflow.com/questions/10823873/how-to-make-an-horizontal-box-and-whiskers-plot-in-gnuplot/ – andyras 2012-08-02 19:48:27