Examples and code for the book Gnuplot in Action (Second Edition) by Philipp K. Janert (Manning, 2016)
This repository contains the command files, data sets, and other files necessary to run the examples in the book.
The downloads are organized into three directories:
datasets
: data setsgnuplot
: gnuplot command filesmisc
: files in other formats (Perl, Python, Latex, HTML)
Please note: To avoid possible copyright issues, publicly available
data sets are not replicated in this repository. Instead, the URL where
the data set can be found is given in a file with the extension .readme
.
To run the examples, proceed as follows:
-
change into the
datasets
directory (not into thegnuplot
directory!) -
start
gnuplot
-
issue
gnuplot
commands from the book, like so:plot "marathon" using 1:2 with boxes
-
Or you can load a command file using the
load
command and the relative path, like so:load "../gnuplot/orders.gp"
To download the examples, you may clone the repository:
git clone git://github.com/janert/gnuplot-in-action-2e
Alternatively, download all the files as zipped archive from:
https://github.com/janert/gnuplot-in-action-2e/archive/master.zip
(or using the green button in the top right corner of this page), then unpack them using:
unzip gnuplot-in-action-2e--master.zip
- Catalog Page at Manning: https://www.manning.com/books/gnuplot-in-action-second-edition
Philipp K. Janert