Re: [NTG-context] gnuplot not working
On Wed, Apr 11, 2012 at 14:07, Mojca Miklavec wrote: Oh, indeed. It seems that a recent change in ConTeXt core broke functionality of the module (the version I tested on earlier worked fine). Can you please update and try again? Wolfgang suggested to replace \setcounter with \newcounter. 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 ___
Re: [NTG-context] gnuplot not working
Mojca Miklavec mojca.miklavec.li...@gmail.com writes: On Wed, Apr 11, 2012 at 14:07, Mojca Miklavec wrote: Oh, indeed. It seems that a recent change in ConTeXt core broke functionality of the module (the version I tested on earlier worked fine). Can you please update and try again? Wolfgang suggested to replace \setcounter with \newcounter. Hi Mojca, That seems to work for me - thanks! -- 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 ___
Re: [NTG-context] gnuplot not working
On 2012-04-12 Mojca Miklavec mojca.miklavec.li...@gmail.com wrote: Oh, indeed. It seems that a recent change in ConTeXt core broke functionality of the module (the version I tested on earlier worked fine). Can you please update and try again? Works perfectly. Thanks for the fix. Marco ___ 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 ___
[NTG-context] gnuplot not working
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) fontslatin modern fonts are not preloaded languageslanguage en is active resolversmodules loaded: 'gnuplot' (/home/jd/context/tex/texmf-modules/tex/context/third/gnuplot/t-gnuplot.tex loading Gnuplot module fontstypescripts 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 ___
Re: [NTG-context] gnuplot not working
On Wed, Apr 11, 2012 at 11:00, John Devereux wrote: 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. Which version of Gnuplot did you use / how did you compile it / with which sources? If you used the one from modules.contextgarden.net for windows, that was a bad idea (and my bad that I forgot to remove it from there) since I haven't updated it for a while. I changed textscale to fontscale on gnuplot developers' request in February 2011. Gnuplot 4.6.0 already includes the context terminal, so it might be the best idea to try with official gnuplot binary (or sources). 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 ___
Re: [NTG-context] gnuplot not working
On 2012-04-11 John Devereux j...@devereux.me.uk wrote: Is there a problem with gnuplot? I get an error with the minimal example on the wiki. \usemodule[gnuplot] \starttext \startGNUPLOTscript[sin] plot sin(x) \stopGNUPLOTscript \useGNUPLOTgraphic[sin] \stoptext Confirmed with context version: 2012.04.10 19:46 and gnuplot 4.7 patchlevel 0. Marco ___ 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 ___
Re: [NTG-context] gnuplot not working
Mojca Miklavec mojca.miklavec.li...@gmail.com writes: On Wed, Apr 11, 2012 at 11:00, John Devereux wrote: 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. Which version of Gnuplot did you use / how did you compile it / with which sources? If you used the one from modules.contextgarden.net for windows, that was a bad idea (and my bad that I forgot to remove it from there) since I haven't updated it for a while. I changed textscale to fontscale on gnuplot developers' request in February 2011. Gnuplot 4.6.0 already includes the context terminal, so it might be the best idea to try with official gnuplot binary (or sources). Hi Mojca, Sorry, I should have said I am running on linux. I compiled the official gnuplot 4.6 jd@devereux:~$ gnuplot G N U P L O T Version 4.6 patchlevel 0last modified 2012-03-04 Build System: Linux i686 Copyright (C) 1986-1993, 1998, 2004, 2007-2012 Thomas Williams, Colin Kelley and many others gnuplot home: http://www.gnuplot.info faq, bugs, etc: type help FAQ immediate help: type help (plot window: hit 'h') It does seem to be running this version. I found the generated tex file: == % Written by ConTeXt terminal for GNUPLOT on: 2012-04-11 11:31 BST % GNUPLOT version: 4.6.0, terminal version: 1.0.0 (2011-11-05) % See also http://wiki.contextgarden.net/Gnuplot % \startGNUPLOTgraphic[1] string gnuplotversion; gnuplotversion := 4.6; string termversion;termversion:= 1.0; % scaling factor, width and height of the figure a := 1cm; w := 12.700a; h := 7.620a; % (5in, 3in) % temporary variable for storing the path and images save p, img, ima; path p; string img, ima; % - % Different initialisations % - % for additional user-defined settings gp_setup_before; % text scaling factor for the whole figure gp_scale_text := 1; % pointsize scaling factor gp_set_pointsize(1); % linewidth scaling factor for individual lines gp_set_linewidth(1); % for additional user-defined settings gp_setup_after; % - gp_set_linetype(-2); p := (1.345a,0.844a)--(1.468a,0.844a); gp_draw(p); p := (12.078a,0.844a)--(11.955a,0.844a); gp_draw(p); gp_put_text((1.138a, 0.844a), align(right), \sometxt[gp]{-1}); p := (1.345a,1.480a)--(1.468a,1.480a); gp_draw(p); p := (12.078a,1.480a)--(11.955a,1.480a); gp_draw(p); gp_put_text((1.138a, 1.480a), align(right), \sometxt[gp]{-0.8}); p := (1.345a,2.116a)--(1.468a,2.116a); gp_draw(p); p := (12.078a,2.116a)--(11.955a,2.116a); gp_draw(p); gp_put_text((1.138a, 2.116a), align(right), \sometxt[gp]{-0.6}); p := (1.345a,2.752a)--(1.468a,2.752a); gp_draw(p); p := (12.078a,2.752a)--(11.955a,2.752a); gp_draw(p); gp_put_text((1.138a, 2.752a), align(right), \sometxt[gp]{-0.4}); p := (1.345a,3.388a)--(1.468a,3.388a); gp_draw(p); p := (12.078a,3.388a)--(11.955a,3.388a); gp_draw(p); gp_put_text((1.138a, 3.388a), align(right), \sometxt[gp]{-0.2}); p := (1.345a,4.024a)--(1.468a,4.024a); gp_draw(p); p := (12.078a,4.024a)--(11.955a,4.024a); gp_draw(p); gp_put_text((1.138a, 4.024a), align(right), \sometxt[gp]{0}); p := (1.345a,4.661a)--(1.468a,4.661a); gp_draw(p); p := (12.078a,4.661a)--(11.955a,4.661a); gp_draw(p); gp_put_text((1.138a, 4.661a), align(right), \sometxt[gp]{0.2}); p := (1.345a,5.297a)--(1.468a,5.297a); gp_draw(p); p := (12.078a,5.297a)--(11.955a,5.297a); gp_draw(p); gp_put_text((1.138a, 5.297a), align(right), \sometxt[gp]{0.4}); p := (1.345a,5.933a)--(1.468a,5.933a); gp_draw(p); p := (12.078a,5.933a)--(11.955a,5.933a); gp_draw(p); gp_put_text((1.138a, 5.933a), align(right), \sometxt[gp]{0.6}); p := (1.345a,6.569a)--(1.468a,6.569a); gp_draw(p); p := (12.078a,6.569a)--(11.955a,6.569a); gp_draw(p); gp_put_text((1.138a, 6.569a), align(right), \sometxt[gp]{0.8}); p := (1.345a,7.205a)--(1.468a,7.205a); gp_draw(p); p := (12.078a,7.205a)--(11.955a,7.205a); gp_draw(p); gp_put_text((1.138a, 7.205a), align(right), \sometxt[gp]{1}); p := (1.345a,0.844a)--(1.345a,0.967a); gp_draw(p); p := (1.345a,7.205a)--(1.345a,7.082a); gp_draw(p); gp_put_text((1.345a, 0.422a), align(center), \sometxt[gp]{-10}); p := (4.028a,0.844a)--(4.028a,0.967a); gp_draw(p); p := (4.028a,7.205a)--(4.028a,7.082a); gp_draw(p); gp_put_text((4.028a, 0.422a), align(center), \sometxt[gp]{-5}); p := (6.711a,0.844a)--(6.711a,0.967a); gp_draw(p); p := (6.711a,7.205a)--(6.711a,7.082a); gp_draw(p); gp_put_text((6.711a, 0.422a), align(center), \sometxt[gp]{0}); p := (9.395a,0.844a)--(9.395a,0.967a); gp_draw(p); p := (9.395a,7.205a)--(9.395a,7.082a); gp_draw(p); gp_put_text((9.395a, 0.422a), align(center), \sometxt[gp]{5}); p
Re: [NTG-context] gnuplot not working
On Wed, Apr 11, 2012 at 11:00, John Devereux wrote: Hi all, Is there a problem with gnuplot? I get an error with the minimal example on the wiki. text.tex: \usemodule[gnuplot] % write a script for gnuplot \startGNUPLOTscript[sin] plot sin(x) \stopGNUPLOTscript % include the resulting graphic into the document \useGNUPLOTgraphic[sin] == ! 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 ? Oh, indeed. It seems that a recent change in ConTeXt core broke functionality of the module (the version I tested on earlier worked fine). I'm not sure if I know where to start digging for the problem. There are some more experienced developers here, but I can try. (Though I take all the blame on me for not adapting the module to MKIV yet.) 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 ___
Re: [NTG-context] gnuplot not working
Am 11.04.2012 um 14:07 schrieb Mojca Miklavec: On Wed, Apr 11, 2012 at 11:00, John Devereux wrote: Hi all, Is there a problem with gnuplot? I get an error with the minimal example on the wiki. text.tex: \usemodule[gnuplot] % write a script for gnuplot \startGNUPLOTscript[sin] plot sin(x) \stopGNUPLOTscript % include the resulting graphic into the document \useGNUPLOTgraphic[sin] == ! 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 ? Oh, indeed. It seems that a recent change in ConTeXt core broke functionality of the module (the version I tested on earlier worked fine). I'm not sure if I know where to start digging for the problem. There are some more experienced developers here, but I can try. (Though I take all the blame on me for not adapting the module to MKIV yet.) You’re mixing counter mechanism in the module. You define a new counter with \newcounter\tikzGNUPLOTnumber and later you reset it with \setcounter\tikzGNUPLOTnumber\zerocount Both commands are from different mechanism where the \setcounter is from \makecounter is was removed in MkIV because the internal commands for \definenumber have changed to \definecounter, \incrementcounter, \setcounter etc. To reset a \newcounter command you can write \newcounter\… (or \doglobal\newcounter\…). Wolfgang ___ 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 ___