Plotting word frequency histogram using gnuplot

瘦欲@ 提交于 2020-01-03 04:58:10

问题


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

I want to plot the histogram of word frequency(y axis) against the word(x axis).


回答1:


Found this:

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


来源:https://stackoverflow.com/questions/11783202/plotting-word-frequency-histogram-using-gnuplot

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!