Gnuplot

GNUPLOT

Gnuplot [1] is a portable command-line driven graphing utility for linux, OS/2, MS Windows, OSX, VMS, and many other platforms. The source code is copyrighted but freely distributed (i.e., you don't have to pay for it). It was originally created to allow scientists and students to visualize mathematical functions and data interactively, but has grown to support many non-interactive uses such as web scripting. It is also used as a plotting engine by third-party applications like Octave. Gnuplot has been supported and under active development since 1986.

Gnuplot supports many types of plots in either 2D and 3D. It can draw using lines, points, boxes, contours, vector fields, surfaces, and various associated text. It also supports various specialized plot types.

Installed Versions

All the available versions of GNUPLOT for use can be viewed by issuing the following command. This applies for other applications as well.

module avail gnuplot

output:

---------------------- /usr/local/share/modulefiles -------------------------

gnuplot/5.0.3(D)

The default version is identified by "(default)" behind the module name and can be loaded as:

module load gnuplot

The other versions of GNUPLOT can be loaded as:

module load gnuplot/<version>

Running Gnuplot

Request a compute node with X-Forwarding for GUI. You will be assigned a compute node. Please follow HPC Visual Access for detailed information.

srun --x11 -c 2 --mem=8gb -t 3:00:00 --pty bash

Load the module:

module load gnuplot

Run the command:

gnuplot

At the prompt gnuplot >, Type: plot sin(x)

You will be able to plot a sine graph as showed:

For in-depth GNUplot tutorial please visit GNUplot at HPC. Refer to HPC Guide to Visualization, HPC Guide to Molecular Visualization & HPC Software Guide for more information.

References:

[1] GNUPlot Tutorial: http://lowrank.net/gnuplot/index-e.html 

[2] GNUPlot Tutorials: http://www.gnuplot.info/help.html