0

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

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

我想根据单词(x 轴)绘制单词频率(y 轴)的直方图。

4

1 回答 1

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
于 2012-08-02T18:18:54.937 回答