Gnuplot

From PHYSpedia
Revision as of 15:54, 12 March 2012 by Cclark (talk | contribs) (Plotting)

Jump to: navigation, search

Gnuplot is a terminal based plotting application. This means that you interact with gnuplot by typing commands at a prompt.

Plotting

gnuplot is a program created to plot stuff. You can plot functions or data. There are two commands for plotting, plot and splot. plot is used to plot 2D functions while splot is used to plot 3D functions. The plot command has the following form

gnuplot> plot [ function | 'filename' ] [ modifiers ]

gnuplot has great support for all common (and many uncommon) functions. For example, to plot sin(x),

gnuplot> plot sin(x)

Multiple functions can be plotted on the same graph, just separate each with a comma

gnuplot> plot sin(x), cos(x)

We control the

Creating Pictures

Gnuplot Scripts