College of Engineering Logo Web Server Logs Student Server Logs Orange bar Main Page General Information Special Events Programs Research Student Information Computer Facility Outreach Xtreme Engineering Jobs Available

Plotting three-dimensional plots with surfaces or contours

Computer Facility University of Hawaii at Manoa
College of Engineering

By default, a splot command plots only the surface and not a contour of a surface. However, by using the set contour command, you can have gnuplot plot a contour of the function. There are two different ways contours are drawn, and these can be specified as an option following the set contour command. The valid values are as follows: base surface or both.

The following is a set of plots of a function using these options. Some of the sampling and isosampling has been tweaked, but that will not be discussed here.

splot sinc(x) * sinc(y)
set contour base; splot sinc(x) * sinc(y)
set contour surface; splot sinc(x) * sinc(y)
set contour both; splot sinc(x) * sinc(y)

Author: Ben Yoshino (ben@wiliki.eng.hawaii.edu)

Comments, Questions? | E-mail: webmaster@wiliki.eng.hawaii.edu


Last updated on Thursday, August %.1d, 2002
Copyright © 2001 University of Hawai`i, College of Engineering, Computer Facility
All rights reserved.