plot and splot are the primary commands of the program. They plot functions and data in many, many ways. plot is used to plot 2-d functions and data, while splot plots 3-d surfaces and data.
Syntax:
plot {ranges} {<function> | {"<datafile>" {datafile-modifiers}}} \
{title} {style} {, {<axes>,} <function> {title} {style}...}
splot {ranges} {<function> | {"<datafile>" {datafile-modifiers}}} \
{title} {style} {, <function> {title} {style}...}
where either a <function> or the name of a data file enclosed in quotes is supplied. A function is a mathematical expression, or a pair (plot) or triple (splot) of mathematical expressions in the case of parametric functions. It is also possible to insert user-defined function definitions and variable assignments into the list of plots.
For plot there are four possible sets of axes available; the keyword <axes> is used to change the axes for which the following plots should be scaled. x1y1 and first refer to the axes on the bottom and left; x2y2 and second to those on the top and right; x1y2 to those on the bottom and right; and x2y1 to those on the top and left. Ranges specified on the plot command apply only to the first set of axes (bottom left).
The <axes> option has not been implemented for splot.
plot and splot commands can be as simple as
plot sin(x)
and
splot x * y
or as complex as (!)
plot [t=1:10] [-pi:pi*2] tan(t), "data.1" using 2:($3/$4) with lines, \
f(x)=x**p, p=2, second, f(t) with points
It is also possible to define functions and parameters on the plot command itself. This is done merely by separating them with commas. For example,
plot f(x) = sin(x*a), a = .2, f(x), a = .4, f(x)
data-file
errorbars
parametric
ranges
style
title