| Title: | gnuplot notes |
| Author: | Darin Brezeale |
| Date Created: | 01-19-2005 |
| Updated: | Thursday, 19-Jul-2007 23:12:05 EDT |
253440
39418
41976
32274
27448
342810
325220
10184
98096
103802
204688
251832
252066
171766
59024
start gnuplot
$ gnuplot
generate a scatter plot
gnuplot> plot "input.txt"
![]()
generate a line plot
gnuplot> plot "input.txt" with lines
![]()
generate a plot with lines and data points
gnuplot> plot "input.txt" with linespoints
![]()
save your last graph to a png file
gnuplot> set terminal png
gnuplot> set output "output.png"
gnuplot> replot
gnuplot> plot "sample-size.txt" notitle with linespoints
gnuplot> set xlabel "Sample Size"
gnuplot> set ylabel "Classification Accuracy (%)"
gnuplot> replot
generate a histogram
gnuplot> binwidth = 2
gnuplot> set boxwidth binwidth
gnuplot> bin(x) = binwidth*floor(x/binwidth)
gnuplot> plot 'hist.data' using (bin($1)):(1.0) smooth freq w boxes