Changing Variables
Sometime, you would rather use other variables names than x and
y for your plots. GnuPlot allows you to change the name of the
independent variable. You do this using the set dummy
command. For instance, if you were working with 2D plots with t
as the independent variable,
- plot sin(x) - Would bring up the graph
- set dummy t
- plot sin(x) - Would give you the error undefined
variable: x.
- plot sin(t) - Would bring up the graph again.
You can change the dummy variables for 3D plots as well, with one of
the following:
- set dummy u, v - To change x to u, and y to v
- set dummy ,v - To just change y to v
For more information, see help set dummy.
Table of Contents - Previous - Defining your own functions - Next - Changing Axis Labels
College of Natural Sciences /
University of Northern Iowa /
manager@cns.uni.edu
Copyright © 1996 College of Natural Sciences. All Rights Reserved.
Last Modified: 10/29/96