[NTG-context] gnuplot not working

John Devereux john at devereux.me.uk
Wed Apr 11 11:00:18 CEST 2012


Hi all,

Is there a problem with gnuplot? I get an error with the minimal example
on the wiki. I think the generated .plt file has an error; it works if I
manually delete the "fontscale 1" bit and run context on
test-gnuplot-1.tmp.

Using latest beta, tried with current official gnuplot as well as
mojca-patched version.

Thanks,

John


======================================================================
test-gnuplot-1.plt:

# Do not modify this file - all changes will be overwritten
# Change test.tex instead.
set terminal context size 5in,3in fontscale 1 
load 'test-gnuplot-inclusions.tmp'
set output "test-gnuplot-1-ctx.tex"
load 'test-gnuplot-1.tmp'

======================================================================
text.tex:

\usemodule[gnuplot]

% write a script for gnuplot
\startGNUPLOTscript[sin]
   plot sin(x)
\stopGNUPLOTscript

% include the resulting graphic into the document
\useGNUPLOTgraphic[sin]

======================================================================

log:

mtx-context     | run 1: luatex --fmt="/home/jd/context/tex/texmf-cache/luatex-cache/context/2448223e6631addb83df348d74153606/formats/cont-en" --lua="/home/jd/context/tex/texmf-cache/luatex-cache/context/2448223e6631addb83df348d74153606/formats/cont-en.lui" --backend="pdf" "./test.tex" \stoptext
This is LuaTeX, Version beta-0.70.1-2011051923 (rev 4277) 
 \write18 enabled.
(test.tex

ConTeXt  ver: 2012.04.06 23:08 MKIV  fmt: 2012.4.7  int: english/english

system          > cont-new.mkiv loaded
(/home/jd/context/tex/texmf-context/tex/context/base/cont-new.mkiv
system          > beware: some patches loaded from cont-new.mkiv
)
system          > test.top loaded
(test.top)
fonts           > latin modern fonts are not preloaded
languages       > language en is active
resolvers       > modules > loaded: 'gnuplot'
(/home/jd/context/tex/texmf-modules/tex/context/third/gnuplot/t-gnuplot.tex
loading         > Gnuplot module
fonts           > typescripts > unknown: library 'loc'
(/home/jd/context/tex/texmf-context/tex/context/base/type-imp-texgyre.mkiv)))
mtxrun          |
mtxrun          | executing: gnuplot test-gnuplot-1.plt
mtxrun          |
mtxrun          |
aaa             > mtxrun --direct gnuplot test-gnuplot-1.plt
! Missing number, treated as zero.

system          > tex > error on line 0 in file : Missing number, treated as zero ...

<empty file>

<to be read again> 
                   \let 
\doprocessGNUPLOTfile ...OTnumber \zerocount \let 
                                                  \normalstarttikzpicture =\...
<argument> ...NUPLOTfile [sin][\@@GNUPLOTresult ]}
                                                  \doif {\@@GNUPLOTterminal ...
\firstofoneargument #1->#1
                          
<argument> ...}\writeandprocessGNUPLOTscript {sin}
                                                  \doifelse {\@@GNUPLOTtermi...
\firstoftwoarguments #1#2->#1
                             
...
<*> ./test.tex \stoptext
                        
? 


-- 

John Devereux


More information about the ntg-context mailing list