From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/89110 Path: news.gmane.org!not-for-mail From: luigi scarso Newsgroups: gmane.comp.tex.context Subject: Re: pgfplots broken? Date: Wed, 5 Nov 2014 09:14:48 +0100 Message-ID: References: <5B9C63652B6645449FF82F30DED187BC@CJ3001517A> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0676703405==" X-Trace: ger.gmane.org 1415175341 7404 80.91.229.3 (5 Nov 2014 08:15:41 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 5 Nov 2014 08:15:41 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Nov 05 09:15:32 2014 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([5.39.185.229]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XlvkZ-000769-Jn for gctc-ntg-context-518@m.gmane.org; Wed, 05 Nov 2014 09:15:31 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 07AA610220 for ; Wed, 5 Nov 2014 09:15:29 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id af1tz2IN5nYB for ; Wed, 5 Nov 2014 09:15:27 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 14D85101E7 for ; Wed, 5 Nov 2014 09:14:56 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id E68E7101E7 for ; Wed, 5 Nov 2014 09:14:52 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id wFDDKwDKFLfe for ; Wed, 5 Nov 2014 09:14:51 +0100 (CET) Original-Received: from filter4-ams.mf.surf.net (filter4-ams.mf.surf.net [192.87.102.72]) by balder.ntg.nl (Postfix) with ESMTP id ADBB3101E6 for ; Wed, 5 Nov 2014 09:14:51 +0100 (CET) Original-Received: from mail-qa0-x22d.google.com (mail-qa0-x22d.google.com [IPv6:2607:f8b0:400d:c00::22d]) by filter4-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id sA58Enp6026573 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for ; Wed, 5 Nov 2014 09:14:50 +0100 Original-Received: by mail-qa0-f45.google.com with SMTP id dc16so141120qab.4 for ; Wed, 05 Nov 2014 00:14:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=9xH5UdSQai+IL2SaCxAsVJdLFehHfaF+91u0fTgnsCY=; b=NZ1IzZYNHxKla+2L7ho+Cn+xjWuP+TOlcRpNqG6A58TK2pgNRQc8unmPXujJt07mkt ZTx0atrDeDyJmbPkWabTgHyYsrJE8etCaaBdshuTSPkEExOPXp1q1znUSntmBP1wOEZB q5Ni/06aeIj6/lKrYzda2wMw4L/J9RJJIccxstD+WixgpLb9MkbLXQJvE26d+Tz0IgEe L2WLBu7G9ZPInVBi6HI60qzFLLiBgnU6sWEsYzmUIBI03PjGEOQMWC/And3eiIvTBfFP n4VCWkxTP31ISZz3ZQH8yK9aiqA8OTLFgiMhj0QmE6roUJuMIMoTBunwf7yYxWQt4z6t wu7Q== X-Received: by 10.224.132.70 with SMTP id a6mr83417972qat.16.1415175289024; Wed, 05 Nov 2014 00:14:49 -0800 (PST) Original-Received: by 10.140.37.99 with HTTP; Wed, 5 Nov 2014 00:14:48 -0800 (PST) In-Reply-To: <5B9C63652B6645449FF82F30DED187BC@CJ3001517A> X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=2607:f8b0:400d:c00::22d; country=US X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 01NbIeOp4 - 35e64b21e6b6 - 20141105 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.16 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.org gmane.comp.tex.context:89110 Archived-At: --===============0676703405== Content-Type: multipart/alternative; boundary=001a11c2bc2465b5920507182c67 --001a11c2bc2465b5920507182c67 Content-Type: text/plain; charset=UTF-8 On Wed, Nov 5, 2014 at 8:42 AM, Akira Kakuto wrote: > Dear Mikael, > > An example from PGFPlots Gallery. > Please try if it works. Here on windows, it seems to work. > Attached files are tt.log.txt and tt.pdf. > > Best, > Akira > > % > % tt.tex: from PGFPlots Gallery > % > \setupcolors[state=start] > \usemodule[tikz] > \usemodule[pgfplots] > > \starttext > > \midaligned{% > \starttikzpicture > \startaxis[ > xmin=-3, xmax=3, > ymin=-3, ymax=3, > extra x ticks={-1,1}, > extra y ticks={-2,2}, > extra tick style={grid=major}, > ] > \draw[red] \pgfextra{ > \pgfpathellipse{\pgfplotspointaxisxy{0}{0}} > {\pgfplotspointaxisdirectionxy{1}{0}} > {\pgfplotspointaxisdirectionxy{0}{2}} > % see also the documentation of > % 'axis direction cs' which > % allows a simpler way to draw this ellipse > }; > \draw[blue] \pgfextra{ > \pgfpathellipse{\pgfplotspointaxisxy{0}{0}} > {\pgfplotspointaxisdirectionxy{1}{1}} > {\pgfplotspointaxisdirectionxy{0}{2}} > }; > \addplot [only marks,mark=*] coordinates { (0,0) }; > \stopaxis > \stoptikzpicture > } > > \stoptext > it's ok with TL 2014 (and the latest luatex from experimental), that has \def\pgfversion{3.0.0} and it should be the http://sourceforge.net/projects/pgf/ but downloading the pgf module from the garden lua error > error on line 75 in file /opt/luatex/standalone-mkiv-new-I/tex/texmf/tex/generic/pgf/libraries/luamath/pgflibraryluamath.code.tex: ...iv-new-I/tex/texmf-context/tex/context/base/util-lib.lua:246: module 'pgfluamath.functions' not found: no field package.preload['pgfluamath.functions'] no file '/usr/local/share/lua/5.2/pgfluamath/functions.lua' no file '/usr/local/share/lua/5.2/pgfluamath/functions/init.lua' no file '/usr/local/lib/lua/5.2/pgfluamath/functions.lua' no file '/usr/local/lib/lua/5.2/pgfluamath/functions/init.lua' no file './pgfluamath/functions.lua' no file '/usr/local/lib/lua/5.2/pgfluamath/functions.so' no file '/usr/local/lib/lua/5.2/loadall.so' no file './pgfluamath/functions.so' no file '/usr/local/lib/lua/5.2/pgfluamath.so' no file '/usr/local/lib/lua/5.2/loadall.so' no file './pgfluamath.so' stack traceback: [C]: in function 'savedrequire' ...iv-new-I/tex/texmf-context/tex/context/base/util-lib.lua:246: in function 'require' [\directlua]:1: in main chunk 65 \let\pgfutil@directlua\directlua 66 \pgfutil@directlua{% 67 tex.enableprimitives('pgfutil@',{'luaescapestring'})} 68 \else 69 \def\pgfutil@directlua#1{} 70 \def\pgfutil@luaescapestring#1{} 71 \fi 72 73 \pgfutil@directlua{% 74 pgfluamathfunctions = require("pgfluamath.functions") 75 >> pgfluamathparser = require("pgfluamath.parser")} 76 77 78 % Patch some configuration macros such that the modifications are 79 % available in LUA as well: 80 \pgfkeys{ 81 /pgf/trig format/deg/.add code={}{\directlua{pgfluamathfunctions.setTrigFormat("deg")}\aftergroup\pgfmath@settrigformat }, 82 /pgf/trig format/rad/.add code={}{\directlua{pgfluamathfunctions.setTrigFormat("rad")}\aftergroup\pgfmath@settrigformat }, 83 } 84 % ... and reactivate the key: 85 \pgfmathiftrigonometricusesdeg{% and \def\pgfversion{3.0.0-cvs} So it seems that the cvs version is not ok with ctx and I think that these 74 pgfluamathfunctions = require("pgfluamath.functions") 75 >> pgfluamathparser = require("pgfluamath.parser")} are also wrong in Lua . -- luigi --001a11c2bc2465b5920507182c67 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable


On Wed, Nov 5, 2014 at 8:42 AM, Akira Kakuto <kakuto@fuk.kindai.= ac.jp> wrote:
Dear Mikael,

An example from PGFPlots Gallery.
Please try if it works. Here on windows, it seems to work.
Attached files are tt.log.txt and tt.pdf.

Best,
Akira

%
% tt.tex: from PGFPlots Gallery
%
\setupcolors[state=3Dstart]
\usemodule[tikz]
\usemodule[pgfplots]

\starttext

\midaligned{%
\starttikzpicture
\startaxis[
xmin=3D-3, xmax=3D3,
ymin=3D-3, ymax=3D3,
extra x ticks=3D{-1,1},
extra y ticks=3D{-2,2},
extra tick style=3D{grid=3Dmajor},
]
\draw[red] \pgfextra{
\pgfpathellipse{\pgfplotspointaxisxy{0}{0}}
{\pgfplotspointaxisdirectionxy{1}{0}}
{\pgfplotspointaxisdirectionxy{0}{2}}
% see also the documentation of
% 'axis direction cs' which
% allows a simpler way to draw this ellipse
};
\draw[blue] \pgfextra{
\pgfpathellipse{\pgfplotspointaxisxy{0}{0}}
{\pgfplotspointaxisdirectionxy{1}{1}}
{\pgfplotspointaxisdirectionxy{0}{2}}
};
\addplot [only marks,mark=3D*] coordinates { (0,0) };
\stopaxis
\stoptikzpicture
}

\stoptext
it's ok with TL 2014 (and the latest lua= tex from experimental),
that has=C2=A0
\def\pgfversion{3.0.0}=
and it should be the=C2=A0
http://sourceforge.net/projects/pgf/



but=C2=A0
downloading the pgf mo= dule from =C2=A0the garden=C2=A0


lua error =C2=A0 =C2=A0 = =C2=A0 > error on line 75 in file /opt/luatex/standalone-mkiv-new-I/tex/= texmf/tex/generic/pgf/libraries/luamath/pgflibraryluamath.code.tex:

...iv-new-I/tex/texmf-context/tex/context/base/util-lib.l= ua:246: module 'pgfluamath.functions' not found:
=C2=A0 = =C2=A0 =C2=A0 =C2=A0 no field package.preload['pgfluamath.functions'= ;]
=C2=A0 =C2=A0 =C2=A0 =C2=A0 no file '/usr/local/share/lua/= 5.2/pgfluamath/functions.lua'
=C2=A0 =C2=A0 =C2=A0 =C2=A0 no = file '/usr/local/share/lua/5.2/pgfluamath/functions/init.lua'
=
=C2=A0 =C2=A0 =C2=A0 =C2=A0 no file '/usr/local/lib/lua/5.2/pgflua= math/functions.lua'
=C2=A0 =C2=A0 =C2=A0 =C2=A0 no file '= /usr/local/lib/lua/5.2/pgfluamath/functions/init.lua'
=C2=A0 = =C2=A0 =C2=A0 =C2=A0 no file './pgfluamath/functions.lua'
=C2=A0 =C2=A0 =C2=A0 =C2=A0 no file '/usr/local/lib/lua/5.2/pgfluamath= /functions.so'
=C2=A0 =C2=A0 =C2=A0 =C2=A0 no file '/usr/= local/lib/lua/5.2/loadall.so'
=C2=A0 =C2=A0 =C2=A0 =C2=A0 no = file './pgfluamath/functions.so'
=C2=A0 =C2=A0 =C2=A0 =C2= =A0 no file '/usr/local/lib/lua/5.2/pgfluamath.so'
=C2=A0= =C2=A0 =C2=A0 =C2=A0 no file '/usr/local/lib/lua/5.2/loadall.so'
=C2=A0 =C2=A0 =C2=A0 =C2=A0 no file './pgfluamath.so'
stack traceback:
=C2=A0 =C2=A0 =C2=A0 =C2=A0 [C]: in functi= on 'savedrequire'
=C2=A0 =C2=A0 =C2=A0 =C2=A0 ...iv-new-I= /tex/texmf-context/tex/context/base/util-lib.lua:246: in function 'requ= ire'
=C2=A0 =C2=A0 =C2=A0 =C2=A0 [\directlua]:1: in main chun= k

65 =C2=A0 =C2=A0 =C2=A0 \let\pgfutil@directlua\d= irectlua
66 =C2=A0 =C2=A0 =C2=A0 \pgfutil@directlua{%
6= 7 =C2=A0 =C2=A0 =C2=A0 =C2=A0 tex.enableprimitives('pgfutil@',{'= ;luaescapestring'})}
68 =C2=A0 =C2=A0 \else
69 =C2= =A0 =C2=A0 =C2=A0 \def\pgfutil@directlua#1{}
70 =C2=A0 =C2=A0 =C2= =A0 \def\pgfutil@luaescapestring#1{}
71 =C2=A0 =C2=A0 \fi
72 =C2=A0 =C2=A0=C2=A0
73 =C2=A0 =C2=A0 \pgfutil@directlua{%
74 =C2=A0 =C2=A0 =C2=A0 pgfluamathfunctions =3D require("pgfl= uamath.functions")
75 >> =C2=A0 =C2=A0pgfluamathparser= =3D require("pgfluamath.parser")}
76 =C2=A0 =C2=A0=C2= =A0
77 =C2=A0 =C2=A0=C2=A0
78 =C2=A0 =C2=A0 % Patch som= e configuration macros such that the modifications are
79 =C2=A0 = =C2=A0 % available in LUA as well:
80 =C2=A0 =C2=A0 \pgfkeys{
81 =C2=A0 =C2=A0 =C2=A0/pgf/trig format/deg/.add code=3D{}{\directlu= a{pgfluamathfunctions.setTrigFormat("deg")}\aftergroup\pgfmath@se= ttrigformat},
82 =C2=A0 =C2=A0 =C2=A0/pgf/trig format/rad/.add co= de=3D{}{\directlua{pgfluamathfunctions.setTrigFormat("rad")}\afte= rgroup\pgfmath@settrigformat},
83 =C2=A0 =C2=A0 }
84 = =C2=A0 =C2=A0 % ... and reactivate the key:
85 =C2=A0 =C2=A0 \pgf= mathiftrigonometricusesdeg{%

and=C2=A0
\= def\pgfversion{3.0.0-cvs}

So it seems that t= he cvs version is not ok with ctx
and I think that these=C2= =A0
74 =C2=A0 =C2=A0 =C2=A0 pgfluamathfunctions =3D require("pgflua= math.functions")
75 >> =C2=A0 =C2=A0pgfluamathparser = =3D require("pgfluamath.parser")}
are also wrong = in Lua .


--
luigi
--001a11c2bc2465b5920507182c67-- --===============0676703405== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly90ZXguYWFuaGV0Lm5ldAphcmNoaXZlICA6IGh0dHA6Ly9mb3VuZHJ5LnN1cGVsZWMu ZnIvcHJvamVjdHMvY29udGV4dHJldi8Kd2lraSAgICAgOiBodHRwOi8vY29udGV4dGdhcmRlbi5u ZXQKX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX18= --===============0676703405==--