From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/113701 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jean-Philippe Rey via ntg-context Newsgroups: gmane.comp.tex.context Subject: Re: Problem with log coordinates in metafun graph module Date: Fri, 10 Dec 2021 08:34:26 +0100 Message-ID: <33B117AD-5CFF-491F-BAC7-531EE4D8EA77@centralesupelec.fr> References: <4479561F-D6F3-415A-B97F-F2BBC2A3F5D8@centralesupelec.fr> Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 (Mac OS X Mail 15.0 \(3693.20.0.1.32\)) Content-Type: multipart/mixed; boundary="===============4906135306814360062==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38010"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Jean-Philippe Rey To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Dec 10 08:34:54 2021 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane-mx.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mvaQg-0009it-Bb for gctc-ntg-context-518@m.gmane-mx.org; Fri, 10 Dec 2021 08:34:54 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 4B4DC2A17E6; Fri, 10 Dec 2021 08:34:32 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id YnQVsl2Pf2QN; Fri, 10 Dec 2021 08:34:30 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 65C572A17FF; Fri, 10 Dec 2021 08:34:30 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 5C2402A17E9 for ; Fri, 10 Dec 2021 08:34:28 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 8BJ3ENIMcEiY for ; Fri, 10 Dec 2021 08:34:27 +0100 (CET) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=138.195.33.47; helo=smtp3.ecp.fr; envelope-from=jean-philippe.rey@centralesupelec.fr; receiver= Original-Received: from smtp3.ecp.fr (smtp3.ecp.fr [138.195.33.47]) by zapf.ntg.nl (Postfix) with ESMTP id 55EA82A17E6 for ; Fri, 10 Dec 2021 08:34:27 +0100 (CET) Original-Received: from smtpclient.apple (unknown [78.192.242.47]) (Authenticated sender: jprey) by smtp3.ecp.fr (Postfix) with ESMTPSA id B5D8D609B9; Fri, 10 Dec 2021 08:34:26 +0100 (CET) In-Reply-To: <4479561F-D6F3-415A-B97F-F2BBC2A3F5D8@centralesupelec.fr> X-Mailer: Apple Mail (2.3693.20.0.1.32) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.26 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.io gmane.comp.tex.context:113701 Archived-At: --===============4906135306814360062== Content-Type: multipart/alternative; boundary="Apple-Mail=_B8CD7A80-AF4E-4B41-AC13-4F52CD341DF9" --Apple-Mail=_B8CD7A80-AF4E-4B41-AC13-4F52CD341DF9 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Dear list, I dived into m-grap.mpiv and found that "log" coordinates are now called = "logarithmic". So setcoords(logarithmic, linear) is the new way and it works with the last ConTeXt version. Jean-Philippe, > Le 8 d=C3=A9c. 2021 =C3=A0 11:49, Jean-Philippe Rey via ntg-context = a =C3=A9crit : >=20 > Dear list, >=20 > Log coordinates seem to be broken in the last version of = ConTeXt/metafun/graph. >=20 > Here is my failing example >=20 > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > \usemodule[graph] > \starttext > \startMPcode{graph} > draw begingraph(100mm, 100mm); > setcoords(log, linear); % works fine with setcoords(linear, = linear); > gdraw (1e-3, 10) -- (10, 30); > endgraph; > \stopMPcode > \stoptext > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >=20 > which produces nothing but works with ConTeXt ver: 2021.01.05 10:45 = LMTX. >=20 > You will find attached the log file which contains >=20 > metafun > log > error: A primary expression can't begin with = ',' >=20 > Thank you for your help. --Apple-Mail=_B8CD7A80-AF4E-4B41-AC13-4F52CD341DF9 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 Dear = list,

I dived into = m-grap.mpiv and found that "log" coordinates are now called = "logarithmic". So

   setcoords(logarithmic, linear)

is the new way and it = works with the last ConTeXt version.

Jean-Philippe,

Le 8 = d=C3=A9c. 2021 =C3=A0 11:49, Jean-Philippe Rey via ntg-context <ntg-context@ntg.nl> = a =C3=A9crit :

Dear list,

Log = coordinates seem to be broken in the last version of = ConTeXt/metafun/graph.

Here is my failing = example

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
\usemodule[graph]
\starttext
\startMPcode{graph}
draw begingraph(100mm, = 100mm);
setcoords(log, linear); =   % works fine with setcoords(linear, linear);
= gdraw (1e-3, 10) -- (10, 30);
= endgraph;
\stopMPcode
\stoptext
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

which produces nothing but works with ConTeXt  ver: = 2021.01.05 10:45 LMTX.

You will find = attached the log file which contains

metafun =         > log > error: A = primary expression can't begin with ','

Thank= you for your help.


= --Apple-Mail=_B8CD7A80-AF4E-4B41-AC13-4F52CD341DF9-- --===============4906135306814360062== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly9jb250ZXh0LmFhbmhldC5uZXQKYXJjaGl2ZSAgOiBodHRwczovL2JpdGJ1Y2tldC5v cmcvcGhnL2NvbnRleHQtbWlycm9yL2NvbW1pdHMvCndpa2kgICAgIDogaHR0cDovL2NvbnRleHRn YXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCg== --===============4906135306814360062==--