Changes

Jump to navigation Jump to search
215 bytes added ,  09:43, 11 April 2012
some updates (not yet finished)
[http://www.gnuplot.info Gnuplot] is a portable command-line driven utility for function plotting for many platforms.
To make the examples on this page work, you need a modified binary of Gnuplot 4.6.0 or later (see belowor self-compiled binary).
== Minimal Example ==
** in TeX Live you need to have <code>context-gnuplot</code> installed, in [[ConTeXt Standalone]] you can install it with <code>--modules=t-gnuplot</code> switch
* '''Gnuplot has to be installed''' (and in your PATH)
:On most Linux installations this is probably already the case. On Windows gnuplot.exe is usually also shipped and you have need to make sure that it is in PATH. In case that the binary has a different name, you could create a file <code>gnuplot.bat</code> with something like:
"C:\Program Files\gnuplot\bin\wgnupl32.exe" %*
:(if that was the binary name) and put that file to a <i>"visible place"</i> (has to be found in PATH). Please note: if calling <code>gnuplot</code> from cmd works for you, there is no need to do anything extra.
* '''[[write18]]''' has to be enabled
=== To use the ConTeXt terminal (recommended) ===
==== Windows ====
You can take fetch binaries from [http://dl.contextgardensourceforge.net/modulesprojects/gnuplot-win.zip these/files/gnuplot/ sourceforge (released versions)] binaries or from [[moduleshttp://www.tatsuromatsuoka.com/gnuplot-win|Modules in the garden]] ''/Eng/winbin/ Tatsuro Matsuoka (Note: the binary is old, but I don't have windows any more to compile the latest binary; I can only hope that it still workscvs version)].)''
==== Unix or Mac ====
The easiest way is to use version 4.6.0 or later shipped by your distribution. If that version is too old, you need to fetch and compile your own. If you want to use the binary isversion from trunk: # unofficial; you can also use official cvs git clone git://github.com/mojcagnuplot/gnuplot.git
./prepare
./configure
make
:''(Alternatively you could download gnuplot source from http: make installI use <code>./configure --prefix=$PWD/inst</wwwcode> to avoid cluttering the system and install gnuplot to my personal directory.gnuplotYou can use other flags to configure for a different choice of GUI terminals.info If you want to use the released version, copy get it from [http://githubsourceforge.comnet/mojcaprojects/gnuplot/rawfiles/mastergnuplot/term/context.trm context.trmsourceforge] to and do the same, just skip the <code>term./prepare</code>, add <code>#include ". The latest version of contextterminal is available at http://github.trm"<com/mojca/gnuplot/raw/code> to <code>srcmaster/term/context.h</code> and follow the same steps for compilationtrm.)''
Then replace the old gnuplot executable (once backup-ed) with the one in <code>src/gnuplot</code> or type:
make install
Feel free to contact [[User:Mojca Miklavec|Mojca]] in case of problems.
Here's an example of how to make a stand-alone ConTeXt document with one plot per page:
set term context standalone size 15cm,10cm header '\usetypescript[iwona][ec]' font 'iwona,ss' 10dd
set output 'example.tex'
plot ...
* '''context''':
The current gnuplot-documentation can be downloaded [http://www.gnuplot.info/docs_4.46/gnuplot.pdf here]. == Development == * [http://groups.google.com/group/gnuplot-context mailing list]
== History ==
=== Other links ===
* [http://tug.ctan.org/tex-archive/macros/latex/contrib/exceltex/ exceltex] - an interesting LaTeX package to get data from Excel into LaTeX
* [http://peter.affenbande.org/gnuplot/ Lua-based TikZ terminal] - might be interesting to adapt it for ConTeXt (an [http://www.guit.sssup.it/phpbb/viewtopic.php?p=19929 interesting example])
 
[[Image:Slo Ministry of Higher Education Science and Technology.jpg]]

Navigation menu