使用gnuplot绘制词频直方图

使用gnuplot绘制词频直方图,gnuplot,Gnuplot,我正在使用gnuplot绘制以下数据文件的直方图 data.txt ========= countries 1 domestic 1 fourth-largest 3 in 4 airline 5 and 8 destinations 3 我想根据单词(x轴)绘制单词频率(y轴)的直方图 找到了这个: set xtics border in scale 1,0.5 nomirror rotate by -90 offset character

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

data.txt
=========
countries       1
domestic        1
fourth-largest  3
in      4
airline 5
and     8
destinations    3
我想根据单词(x轴)绘制单词频率(y轴)的直方图

找到了这个:

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]: