ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Mojca Miklavec <mojca.miklavec.lists@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Cc: Peter Hedwig <peter@affenbande.org>
Subject: Re: gnuplot in mkiv
Date: Wed, 17 Feb 2010 22:49:56 +0100	[thread overview]
Message-ID: <6faad9f01002171349h349b48d0t8f8ea2eee1fe8a45@mail.gmail.com> (raw)
In-Reply-To: <20100217191921.GA1938@gaston.couberia.bzh>

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-beta@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
___________________________________________________________________________________

      reply	other threads:[~2010-02-17 21:49 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-02-17 18:59 Martin 'golodhrim' Scholz
2010-02-17 19:19 ` Peter Münster
2010-02-17 21:49   ` Mojca Miklavec [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=6faad9f01002171349h349b48d0t8f8ea2eee1fe8a45@mail.gmail.com \
    --to=mojca.miklavec.lists@gmail.com \
    --cc=ntg-context@ntg.nl \
    --cc=peter@affenbande.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).