- plot <function>

**plot x**3**

For another example, to see what the hyperbolic cosine function looks like, type

**plot cosh(x)**

Note that in this picture the scale isn't the best for finding a lot
of information about the graph. It tells us that the function gets
very large as *x* gets larger. But if we want to see what the
function looks like closer to 0, we need to change the scale. Gnuplot
uses an autoscale mechanicism. It sets the scale so that the graph
will fit on the screen. To change the scale, use one of the following
forms of **plot**:

**plot [x1:x2] [y1:y2] <function>****plot [x1:x2] <function>**(To just set the x range)**plot [] [y1:y2] <function>**(To just set the y range).

- set xrange [-10:10]

- set autoscale y

**plot [-5:5] cosh(x)**

**plot [] [0,10] cosh(x)**

Copyright © 1996 College of Natural Sciences. All Rights Reserved.

Last Modified: 10/29/96