On Wed, Feb 17, 2010 at 20:19, Peter Münster wrote:
On Wed, Feb 17 2010, Martin 'golodhrim' Scholz wrote:
is a direct usage of gnuplot in ConTeXt MKIV possible
Yes.
Example:
\usemodule[gnuplot]
\setupGNUPLOT[terminal=png]
\startGNUPLOTscript[sin]
plot sin(x)
\stopGNUPLOTscript
\starttext
\useGNUPLOTgraphic[sin]
\stoptext
The context terminal should also work (that is: you may leave out the
\setupGNUPLOT[terminal=png] or replace png with context that's
default anyway), but you need some special effort to compile the
terminal:
git clone git://github.com/mojca/gnuplot.git
./prepare
./configure
make
If you would like to keep using that, you can do yourself and others
the favor and write a request to gnuplot-b...@lists.sourceforge.net to
include the terminal in gnuplot's CVS (they say that not enough people
have tested and/or requested its inclusion).
An alternative is to use the lua-tikz terminal. Peter has an
almost-working version that should produce almost-valid (not yet
optimized and maybe not completely future-proof yet) ConTeXt output,
but is not included in official gnuplot version yet (and also the
gnuplot module in ConTeXt needs to be polished a bit in that respect).
Using tikz is not ready yet, but is doable if you have some patience.
You may use [just-in-time or precompiled] PDF/PS/PNG terminals of
course, but you won't be able to add TeX labels and use native
document fonts.
Mojca
___
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___