ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* gnuplot not working
@ 2012-04-11  9:00 John Devereux
  2012-04-11  9:12 ` Mojca Miklavec
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: John Devereux @ 2012-04-11  9:00 UTC (permalink / raw)
  To: ntg-context


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


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2012-04-12 14:02 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-04-11  9:00 gnuplot not working John Devereux
2012-04-11  9:12 ` Mojca Miklavec
2012-04-11 10:39   ` John Devereux
2012-04-11 10:39 ` Marco
2012-04-11 12:07 ` Mojca Miklavec
2012-04-11 13:06   ` Wolfgang Schuster
2012-04-12 13:34   ` Mojca Miklavec
2012-04-12 13:58     ` John Devereux
2012-04-12 14:02     ` Marco

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).