使用gnuplot绘制单词频率直方图

时间:2012-08-02 18:01:05

标签: gnuplot

我正在使用gnuplot绘制以下数据文件的直方图。

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

我想绘制字频率(y轴)与字(x轴)的直方图。

1 个答案:

答案 0 :(得分: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