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,
You can change the dummy variables for 3D plots as well, with one of
- plot sin(x) - Would bring up the graph
- set dummy t
- plot sin(x) - Would give you the error undefined
- plot sin(t) - Would bring up the graph again.
For more information, see help set dummy.
- set dummy u, v - To change x to u, and y to v
- set dummy ,v - To just change y to v
Table of Contents - Previous - Defining your own functions - Next - Changing Axis Labels
College of Natural Sciences /
University of Northern Iowa /
Copyright © 1996 College of Natural Sciences. All Rights Reserved.
Last Modified: 10/29/96