Search Docs by Keyword

Table of Contents


Gnuplot is a portable command-line driven interactive data and function plotting utility for UNIX, IBM OS/2, MS Windows, DOS, Macintosh, VMS, Atari and many other platforms. The software is copyrighted but freely distributed (i.e., you don't have to pay for it). It was originally intended as to allow scientists and students to visualize mathematical functions and data. It does this job pretty well, but has grown to support many non-interactive uses, including web scripting and integration as a plotting engine for third-party applications like Octave. Gnuplot has been supported and under development since 1986.

[hptc@iliadaccess01 ~]$ cd gnuplot/
[hptc@iliadaccess01 gnuplot]$ cat
set terminal postscript portrait
set output "multiplot.eps"
set xrange [-pi:pi] set size 1,1
set origin 0,0
set multiplot
set size 0.5,0.5
set origin 0,0.5
plot sin(x)
set size 0.5,0.5
set origin 0,0
plot 1/sin(x)
set size 0.5,0.5
set origin 0.5,0.5
plot cos(x)
set size 0.5,0.5
set origin 0.5,0
plot 1/cos(x)
unset multiplot
set terminal x11
[hptc@iliadaccess01 gnuplot]$ module load hpc/gnuplot-4.2.5
Loading module hpc/gnuplot-4.2.5.
[hptc@iliadaccess01 gnuplot]$ gnuplot
Version 4.2 patchlevel 5
last modified Mar 2009
System: Linux 2.6.18-92.1.17.el5
Copyright (C) 1986 – 1993, 1998, 2004, 2007 – 2009
Thomas Williams, Colin Kelley and many others
Type help to access the on-line reference manual.
The gnuplot FAQ is available from
Send bug reports and suggestions to
Terminal type set to 'x11'
gnuplot> load ''
gnuplot> quit
[hptc@iliadaccess01 gnuplot]$ module load hpc/gv
Loading module hpc/gv.
[hptc@iliadaccess01 gnuplot]$ gv multiplot.eps
© The President and Fellows of Harvard College
Except where otherwise noted, this content is licensed under Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International license.