Download gnuplot 3.5 User's Guide

Transcript
3.2 More on Setting Ranges
If you wish to specify the y-range but not the x-range for a plot, put in both sets of brackets
but leave the rst empty. For instance,
plot [] [0:4] 1/(x**3)
The command set has many options and is used to control various components of a plot. In
the previous examples, we saw how we can set the ranges of our plots by specifying them in the
plot or splot commands. The ranges can also be set before plotting using the commands set
xrange, set yrange and set zrange. For instance,
set xrange [-3*pi:3*pi]
set yrange [:20]
set zrange [-exp(2.7):sin(pi/2)]
You may omit either the upper or the lower limits. The limits may be numbers or pre-dened
constants, or expressions.
3.3 Setting Labels and Titles
We may give the axes a label and the plot a title using commands such as the following:
set xlabel 'x'
set ylabel "Host Population"
set title 'Graph of y against x'
replot
Note that both single quote and double quote are acceptable. The
redraws the previous plot, incorporating new settings or changes.
6
replot
command simply