Gnuplot Graphics

New releases (3/2000 and later) of unix TSP include a beta test version of gnuplot graphics, with the PLOT and GRAPH commands. (So far, this is available on Sun, linux, IBM RS/6000 and HP-UX). PLOT and GRAPH will still produce the old character plots in the output file by default. To enable the gnuplot graphics, use:

Example

     smpl 1,10;
     trend t;
     plot(dev=gif) t;

This stores the file plot1.gif with the plot image. While PLOT is executing, the following temporary files are created and eventually deleted: plot1.gpl, plot1.ppm, and T._ .

GIF examples:

Required Programs

New options for PLOT and GRAPH

Old options/features supported for PLOT and GRAPH

Thanks to Lars Kristensson of Stockholm University for suggesting the use of gnuplot, and providing a useful shell script to demonstrate it. Other packages, such as Shazam, have used gnuplot for quite awhile.


rev. April 26, 2000
Tech support email: clint@leland.stanford.edu