Hello!
This tutorial is intended to get yourself acclimatized with the
shell
and with
gnuplot.
Don’t just skim over these notes,
but actually perform the examples yourself and experiment
(and ask questions if there is something you don’t understand).
There is no substitute for hands-on experience.
Extra: Using gnuplot with the epslatex terminal.
Software installation notes
Linux
- All the tools we will be using should be installable
via the package manager of your distribution
(for example, aptitude for apt-based distributions like Debian and Ubuntu,
zypper for rpm-based distributions like openSUSE).
Windows
- We recommend installing Cygwin
if you don’t have access to a Linux system.
This will provide you with many useful command-line tools,
installable via the Cygwin installer.
- For gnuplot,
the MinGW version
provides a “windows” terminal with better performance when drawing to the screen
than the gnuplot provided by Cygwin.
(For generating plots into files (postscript, pdf, etc.), this is not important.)
- For viewing Postscript files, gsview
is a useful front-end for ghostscript.
(You can also use it to view PDF files, but probably Adobe Reader or
mupdf are better suited for this.)
MacOS
- You can use Macports to install gnuplot.
To do so:
- Install Xcode from the Mac app store.
- Install Macports for your version of the Mac operating system from
https://www.macports.org/install.php.
- Open terminal.
- Check what gnuplot terminals are available (optional) with
sudo port variant gnuplot
.
- Install gnuplot with required terminals. For example,
sudo port install gnuplot +qt5 +x11 +aquaterm +wxwidgets
will install gnuplot with the QT5, X11, AquaTerm, and WXT terminals.