From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/115552 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: John Kitzmiller via ntg-context Newsgroups: gmane.comp.tex.context Subject: Re: m-graph label Date: Thu, 21 Jul 2022 17:56:45 -0400 Message-ID: References: <20220720074829.691a4c13@boo.my.domain> Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2564742256682553585==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="39335"; mail-complaints-to="usenet@ciao.gmane.io" Cc: John Kitzmiller , John Kitzmiller via ntg-context To: Alan Original-X-From: ntg-context-bounces@ntg.nl Thu Jul 21 23:58:15 2022 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 1oEeBT-0009um-La for gctc-ntg-context-518@m.gmane-mx.org; Thu, 21 Jul 2022 23:58:15 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 2B0EB2A3C01; Thu, 21 Jul 2022 23:57:30 +0200 (CEST) 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 KaoWhsIYwlGJ; Thu, 21 Jul 2022 23:57:27 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 35B1B2A3CF4; Thu, 21 Jul 2022 23:57:27 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 2EE802A3CF0 for ; Thu, 21 Jul 2022 23:57:25 +0200 (CEST) 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 2cWRM9pV7ZLd for ; Thu, 21 Jul 2022 23:57:24 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.222.52; helo=mail-ua1-f52.google.com; envelope-from=jkitzm@gmail.com; receiver= Original-Received: from mail-ua1-f52.google.com (mail-ua1-f52.google.com [209.85.222.52]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 992272A3C01 for ; Thu, 21 Jul 2022 23:57:23 +0200 (CEST) Original-Received: by mail-ua1-f52.google.com with SMTP id l7so1206551ual.9 for ; Thu, 21 Jul 2022 14:57:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=OKcue0fNzgcwrT1mSwZ+nrlC91MlT2t3+cYp1kO/w7o=; b=OKs8+cNBYrPTvdSg0HmwgocLS6f7qldPnLNUXAixWKzTaKDQa4AlIEC+/i+F3sbXmP nY2OMt8IVTnbBboOank0AomOz/O3TdPr15fCy5NqEEUh8b/J6Iat8L6G+oji8JNq3iel xLiqHC0WZWwdkmZFXID13/4cUdnadne13cG1gRtP//pk/2Sjb8Zr5vnW4ubRgWKC3QaX 1AFHrxQxMC2cQheiDHnKtdWCjQj9MQIzVI5HP3g1Q460ansLt+YNzrejutqvSpNPv5vn x1VkQD73WkHD2KBP/vMiIREECW7hDGnkgwwyZtqFSJLrNaj9yPK60S6ESx+QbJ0JhX8P BU5w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=OKcue0fNzgcwrT1mSwZ+nrlC91MlT2t3+cYp1kO/w7o=; b=F9MW3K5r+sBcJ4Rdvjcdc3SY4Yge3ikYYybL+JqzFXKxIc04eNv4vlZqK1/tWlORxR 9qaIfZUyr+c61KHo2bI6s3tcgLnjc10TDT6/ekDVLvMQjeaCRpOXOJCjUiimb42NtCHd AJuRtsRJK34rjJCgbxn0ic94B0tYnXLOsxXUyLfJiQNpUaerPKIu2sMUbigkv27hOibP njpUDb5hupsVgyHktukJ3u8YkbsVxBgAhLTj7KtlXGosaXICGVzvl3Wc37fr9fwdST9d YlOHf+aRpo+Bhvil67yCAlFT9BG2n4YBTGl5GXB2LdNR60M3Vys2Lwfl5kuPTUj5TYAg mo+w== X-Gm-Message-State: AJIora+4RtdBVltiWmyb2altbte6hUGbmr02pIE5ez50QGi8sRtPuIkw QZ9orcYMtOLtHPww9oyeyHiS81UllWWywv4UcVY= X-Google-Smtp-Source: AGRyM1vIXprlSMPvRlFtRwj+IgeIWR4p48W+DEZwb1V02tdHgl2QbC3XobaoMNG3e1IwY0DJm0WGIiujLsS4uBiEe4A= X-Received: by 2002:ab0:338e:0:b0:384:2267:456a with SMTP id y14-20020ab0338e000000b003842267456amr156732uap.79.1658440641046; Thu, 21 Jul 2022 14:57:21 -0700 (PDT) In-Reply-To: <20220720074829.691a4c13@boo.my.domain> 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:115552 Archived-At: --===============2564742256682553585== Content-Type: multipart/alternative; boundary="0000000000004a6cd805e457cd51" --0000000000004a6cd805e457cd51 Content-Type: text/plain; charset="UTF-8" > On Sat, 16 Jul 2022 13:21:06 -0400 > John Kitzmiller via ntg-context wrote: > > > The horizontal axis label of mwe below has 0.0 (showing tenths; pdf > > attached; filename is mwe.tex). > > > > I expected it to show -1, 0, 1, 2, 3, (integers only). Can this be > > formatted? > > > > % -1 1 > > % 0 1 > > % 0 2 > > % 1 1 > > % 2 1 > > % 2 2 > > % 2 3 > > % 2 4 > > % 3 1 > > % 3 2 > > > > \usemodule[m-graph] > > \startMPpage[instance=graph, offset=5mm] > > labeloffset:=3mm; > > draw begingraph(8cm,4cm); > > setrange(-1.5,0.5,3.5,5); > > picture symbol ; > > symbol := image(draw fullcircle scaled 5mm withcolor red;); > > gdata("mwe.tex", v, > > clearxy; > > glabel(symbol,v1,v2) ; > > ); > > frame.bot shifted(0,-2mm) ; > > autogrid(otick.bot,) shifted(0,-2mm); > > endgraph; > > \stopMPpage > > > > Thanks! John > > On Wed, Jul 20, 2022 at 9:48 AM Alan wrote: > % Autoform is the format string used by autogrid > % Autoform_X, Autoform_Y if defined, are used instead > > string Autoform ; Autoform = "%g"; > > % string Autoform_X ; Autoform_X := "@.0e" ; > % string Autoform_Y ; Autoform_Y := "@.0e" ; Thanks Alan. I see those lines in the module listing, but could you provide some guidance on usage? Can the (re)formatting be done from my input file, or do I need to modify mp-grap.mpiv, or some other way? (Apologies for double-dipping, but usage direction for the least-squares fit extension in m-graph would be a gift.) --0000000000004a6cd805e457cd51 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

On S= at, 16 Jul 2022 13:21:06 -0400
John Kitzmiller via ntg-context <ntg-context@ntg.nl> wrote:

> The horizontal axis label of mwe below has 0.0 (showing tenths; pdf > attached; filename is mwe.tex).
>
> I expected it to show -1, 0, 1, 2, 3, (integers only). Can this be
> formatted?
>
> % -1 1
> % 0 1
> % 0 2
> % 1 1
> % 2 1
> % 2 2
> % 2 3
> % 2 4
> % 3 1
> % 3 2
>
> \usemodule[m-graph]
> \startMPpage[instance=3Dgraph, offset=3D5mm]
> labeloffset:=3D3mm;
> draw begingraph(8cm,4cm);
>=C2=A0 =C2=A0setrange(-1.5,0.5,3.5,5);
>=C2=A0 =C2=A0picture symbol ;
>=C2=A0 =C2=A0symbol :=3D image(draw fullcircle scaled 5mm withcolor red= ;);
>=C2=A0 =C2=A0gdata("mwe.tex", v,
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0clearxy;
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0glabel(symbol,v1,v2) ;<= br> >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 );
>=C2=A0 =C2=A0 =C2=A0frame.bot shifted(0,-2mm) ;
>=C2=A0 =C2=A0 =C2=A0autogrid(otick.bot,) shifted(0,-2mm);
> endgraph;
> \stopMPpage
>
> Thanks! John
=C2=A0
On Wed, Jul 20, 2022 at 9:48 AM Alan <braslau.list@comcast.net> wrote:
% Autoform=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0is the format string used by autogrid
% Autoform_X, Autoform_Y=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0if defined, are u= sed instead

string Autoform ; Autoform =3D "%g";

% string Autoform_X ; Autoform_X :=3D "@.0e" ;
% string Autoform_Y ; Autoform_Y :=3D "@.0e" ;
<= br>
Thanks Alan. I see those lines in the module li= sting, but could you provide some guidance on usage? Can the (re)formatting= be done from my input file, or do I need to modify mp-grap.mpiv, or some o= ther way?

(Apologies f= or double-dipping, but usage direction for the least-squares fit extension = in m-graph would be a gift.)
--0000000000004a6cd805e457cd51-- --===============2564742256682553585== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cHM6Ly93d3cubnRnLm5sL21haWxtYW4v bGlzdGluZm8vbnRnLWNvbnRleHQKd2VicGFnZSAgOiBodHRwczovL3d3dy5wcmFnbWEtYWRlLm5s IC8gaHR0cDovL2NvbnRleHQuYWFuaGV0Lm5ldAphcmNoaXZlICA6IGh0dHBzOi8vYml0YnVja2V0 Lm9yZy9waGcvY29udGV4dC1taXJyb3IvY29tbWl0cy8Kd2lraSAgICAgOiBodHRwczovL2NvbnRl eHRnYXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCg== --===============2564742256682553585==--