Saturday, October 16, 2010

Gnuplot

Useful comands to plot histograms:

gnuplot> set style data histograms
gnuplot> plot "random1.dat" using 2:xticlabels(1)
gnuplot> set boxwidth 0.9 relative
gnuplot> set style histogram clustered gap 0
gnuplot> set style fill solid

Some interesting examples:
http://objectmix.com/graphics/140008-gnuplot-histogram-has-large-spaces.html

If we don't want to show the key:

gnuplot>unset key

No comments:

Post a Comment