问题
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