使用gnuplot绘制词频直方图 [英] Plotting word frequency histogram using gnuplot
本文介绍了使用gnuplot绘制词频直方图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用gnuplot绘制以下数据文件的直方图.
I'm using gnuplot to plot the histogram of the following data file.
data.txt
=========
countries 1
domestic 1
fourth-largest 3
in 4
airline 5
and 8
destinations 3
我想绘制单词频率(y轴)对单词(x轴)的直方图.
I want to plot the histogram of word frequency(y axis) against the word(x axis).
推荐答案
发现了这一点:
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
这篇关于使用gnuplot绘制词频直方图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文