[NTG-context] Gnuplot should now work on MKIV

Hans Hagen pragma at wxs.nl
Wed Dec 3 19:00:56 CET 2008


Mojca Miklavec wrote:
> Hello,
> 
> since Aditya was asking yesterday: I finally patched the gnuplot
> module to work with mkiv.
> 
> There are still some parts for which I'm almost sure that they don't
> work (I didn't test, but at least an average gnuplot run should not
> need those features):
> 
> 1.) colored labels
> 
> .... Because withcolor doesn't work; but now that I intercept textext,
> maybe I can do some dirty tricks there.

why dirty ... i made you:

textext("\\colored[r=.5,g=.3]{your text}"

> 2.) drawing points with TeX
>     \setupGNUPLOTterminal[context][points=tex]
>     \defineconversion[gnuplot:pointset][x,+,$\circ$]
> 
> .... Because I first need to rewrite some code that used some dirty
> tricks with \startTeXtexts.
> 
> 3.) changing font with gnuplot commands
>     set title "Nice Title" font "iwona,20"

textext("\\definedfont[iwona at 20pt]{your text}")

> PS: despite switching to mkiv, "reports still don't get written by
> themselves" :) :) :)

will happen in mkmm (mark mojca miklavec, to be written in 2048)

Hans

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
      tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------


More information about the ntg-context mailing list