GNU Plot

What is GNU Plot?

GNU Plot is GNU's Plotting software. It contains a command line tool to generate graphs and plots for the major operating systems. For more, refer to here.

How is GNU Plot loaded?

The below can be used to view all of the installations of zlib on a particular system, where this example uses Coeus.

$ module avail |& grep "gnuplot"

General/gnuplot/5.0.7/gcc-7.2.0

How is GNU Plot used?

When using GNU Plot, be sure to use X11 Forwarding to be able to view the plots.

For the full GNU Plot usage, refer to GNU Plot's user manual.

A Basic Example

Here is a basic example of using GNU Plot to graph a , taken from this list of examples.

$ module load General/gnuplot/5.0.7/gcc-7.2.0

$ cat ./data.csv

1     1

2     4

3     9

4    16

5    25

6    36

7    49

8    64

9    81

10  100


$ gnuplot


  G N U P L O T

 Version 5.0 patchlevel 7    last modified 2017-08-16


 Copyright (C) 1986-1993, 1998, 2004, 2007-2017

 Thomas Williams, Colin Kelley and many others


 gnuplot home:     http://www.gnuplot.info

 faq, bugs, etc:   type "help FAQ"

 immediate help:   type "help"  (plot window: hit 'h')


Terminal type set to 'qt'

gnuplot> plot "data.csv"

And now a plot has appeared as a new window.