Gnuplot hints

Starting Gnuplot
Just type gnuplot at the command prompt.

Plotting Functions
You can plot functions with gnuplot pretty easily. The command is plot and the syntax is this:
plot [var=a:b] f1(var), f2(var), ...
Some examples probably will clarify things:
plot [n=1:100] n*n, 0.5*n*n, 2*n*n 
plot [x=-3:3] sin(x), sin(2*x), sin(x*x)
Consult the gnuplot documentation to learn more about options, or to learn what mathematical functions you can use when definine your functions to plot, etc. Note: In gnuplot you don't have ^ for exponentiation!


Christopher W Brown
Last modified: Wed Jan 14 13:25:26 EST 2004