Gnuplot TikZ terminal
| Download | · | README | · | INSTALL | · | NEWS | · | Source tree | · | Example 1 | · | Example 2 | · | Example 3 |
The terminal is now part of the gnuplot development version on SourceForge. Further development will be done there and I recommend using that version.
The patch from this website is only usefull if you want to use gnuplot 4.2. TikZ files generated with this version are not compatible with the LaTeX style file from recent development versions!
The latest terminal revision is 81 (Sun Jan 27 00:00:18 UTC 2008).
The latest script revision is 88 (Sun Nov 23 12:56:33 UTC 2008).
This gnuplot terminal mainly consists of a generic Lua terminal for wrapping the gnuplot terminal C functions. This allows writing gnuplot terminals in Lua instead of C. The first (and currently only) implemented “backend” is the PGF/TikZ terminal for the use with TeX/LaTeX.
This terminal is tested with Lua 5.1 and gnuplot 4.2 and 4.3cvs. Since I am exclusively using Linux it is also mainly tested on this platform. None the less you will also find the Windows binaries below.
Advanced features
- TikZ/LaTeX styles for plot appearance
- postprocessing (e.g. rescaling) the plot does not affect the linewidths nor the size of points (aka plot marks), fonts, arrow tips or fill patterns
- on 2D plots the size of the plot area can be set instead of the canvas size
- also only on 2D plots the corners of the plot area are accessible through TikZ's named coordinates
- supports any output format that is supported by PGF/TikZ
- overlaying information is possible through the coordinates of the plot area
- adding your own terminal options is an easy task (if you know a little Lua)
Binaries and Packages
For the use of the Linux or Windows binaries you should at least also download the TikZ/Lua-script (gnuplot.lua) and maybe the TikZ/LaTeX style file (gnuplot-lua-tikz.sty) if you don't want to generate it from the script.
Linux i386
A Linux i386 binary with the Lua 5.1.2 interpreter compiled in can be
downloaded. Some of the other terminals were not included to keep the dependencies and size low.
Download: gnuplot-4.2p2-i386.bin.gz
Windows
I managed to build the Windows binaries wgnuplot.exe and pgnuplot.exe of gnuplot 4.2p2
with Lua 5.1.2 compiled in, thanks to MinGW.
Download: gnuplot-win.zip
Ubuntu 7.10
Daniel Elstner also provides binary packages for Ubuntu 7.10 (i386, amd64 and lpia) at
his Personal Package Archive on Launchpad. It is currently the 2007-10-03 release, but the new
script should work with his binaries (see NEWS
for more information).
Download at https://launchpad.net/~daniel-elstner/+archive.
Related links
- The SourceForge project page of PGF/TikZ.
http://sourceforge.net/projects/pgf/. - The gnuplot data and function plotting utility.
http://gnuplot.sourceforge.net. - The Lua Programming Language.
http://www.lua.org/. - The PGF and TikZ examples gallery and other PGF/TikZ related stuff maintained by Kjell Magne Fauske.
http://www.fauskes.net/pgftikzexamples/ and http://www.fauskes.net/pgftikzexamples/resources/.
Any comments, suggestions and bug reports are most welcome!
Have fun!
Peter Hedwig <peter(at)affenbande.org>
Last changed on Thu Oct 15 18:10:16 UTC 2009
