From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/115596 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: Sat, 30 Jul 2022 17:14:01 -0400 Message-ID: References: <20220720074829.691a4c13@boo.my.domain> <20220726121036.669b24bf@boo.my.domain> Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============7465288737680612971==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7894"; 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 Sat Jul 30 23:15:25 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 1oHtnx-0001o0-3v for gctc-ntg-context-518@m.gmane-mx.org; Sat, 30 Jul 2022 23:15:25 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id C62BD28A64A; Sat, 30 Jul 2022 23:14:44 +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 6UC_fXMqmLhv; Sat, 30 Jul 2022 23:14:42 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id A1B9D28A67B; Sat, 30 Jul 2022 23:14:42 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 3C72628A613 for ; Sat, 30 Jul 2022 23:14:41 +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 Ne5vGttbK-Gb for ; Sat, 30 Jul 2022 23:14:40 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.217.47; helo=mail-vs1-f47.google.com; envelope-from=jkitzm@gmail.com; receiver= Original-Received: from mail-vs1-f47.google.com (mail-vs1-f47.google.com [209.85.217.47]) (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 25DD1133C for ; Sat, 30 Jul 2022 23:14:40 +0200 (CEST) Original-Received: by mail-vs1-f47.google.com with SMTP id m67so213722vsc.12 for ; Sat, 30 Jul 2022 14:14:39 -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=CkKxyOgx4wdTgNM8Fvxqv23HzmN0xXDBXNub2vmDrCw=; b=g8+LgTX41JWWFgNiQ25cxYnGfNuAjP0V9u+frbhtAMb5nL8LjSgH+gUEkotUT9aedr 6A9UIZgvwpRaITKO/Vps5Xvy8vDNYZEu8n6wTlHRtAzrjB7aGbRoZt0aPhcqVprXCM3U rQMaO1kDmrWooLT5fV5U9ZnB0J4N5WracUFaUCIhqS5SRkw3UrCqNbgV6BskzgYpcgek 3YVVt9xyAOWFeqH6Yor1Yegqjs+v5TDmsbgvNHMpSehLAko865m5A218ILfMR2IZ7q6c ZKM+NG1NVh8SODbMRdBqjAmQ/F+Lo7O+oumrjpl6scdqtsLhEJ2Z+1Nl7GP09iPIx3XX wBEQ== 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=CkKxyOgx4wdTgNM8Fvxqv23HzmN0xXDBXNub2vmDrCw=; b=7QDqlm8QFMdKMT2nauQVthSrUx7VPm8iqDbkdSVjWJCJsxQAytn92MmAnQNJq5h2Z5 YEpPKnL/tMbJh+M1BRTf7tBgoO+KAQo5DNs6+O5xFPC8ruBDJ3k03Rex0+3Q56qs9Cri 7zIamo2gsFEHUkBYpZWjbESVUqQxOq98vPHokH0i36Zw0rMgwA2wHMDDSaDocrzFvc4T 1qNXFAmbJiCVf2blcqDjAlX6X6uzvXb0j6qbXj9ksqeIdPjJtdbKHEGkdE2g0QJnxBEN a+7a5W8UpYlIJzG85tqGZHdrleAU8FrmIPRg6qb2r1xiqP2zhl6f/TQglL0D68vfwJ66 pomQ== X-Gm-Message-State: AJIora8/DRUzUe4CRgab987SnBnewzdlbQ6WH6b2RUw6SGyxnLKI80gC 1nD7dQiDdAO2uOsyBSbEMVx3LppNjPBQOEgvHig= X-Google-Smtp-Source: AGRyM1vjuvEBtDV+hWg8lG7bMBMS1QwSkqD8mnMgUXCQkg+rTcaaUn5yYfr1Ku4kibgTYbBBcTYGnk7y5P0iz+0IWzw= X-Received: by 2002:a67:fd4b:0:b0:357:7f7e:f2fe with SMTP id g11-20020a67fd4b000000b003577f7ef2femr3618969vsr.23.1659215677522; Sat, 30 Jul 2022 14:14:37 -0700 (PDT) In-Reply-To: <20220726121036.669b24bf@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:115596 Archived-At: --===============7465288737680612971== Content-Type: multipart/alternative; boundary="0000000000001085b805e50c415c" --0000000000001085b805e50c415c Content-Type: text/plain; charset="UTF-8" On Tue, Jul 26, 2022 at 2:10 PM Alan wrote: > On Thu, 21 Jul 2022 17:56:45 -0400 > John Kitzmiller wrote: > > > (Apologies for double-dipping, but usage direction for the > > least-squares fit extension in m-graph would be a gift.) > > The least-squares fit (to a polynomial) is a deterministic calculation, > not an arbitrary non-linear search. As such, it is very robust. > > Certain (useful) functions, a Gaussian peak for example, can be > suitably transformed to a polynomial function, so these are handled as > well, robustly. > > Examples are given as comments in mp-grap.mpiv that you can follow. > Also attached is an adapted version of the original John Hobby > documentation, with extensions described. > > Note that the m-graph module is simply a re-write of the John Hobby > graph macros, taking advantage of floating-point MetaPost (thus > simplified). > > %%%%%%%%%%%%%%%%%%%%%%%% > > I have been working on a completely new luagraph module that does much > in lua. It has, notably, arbitrary coordinate systems. > > This has been a moving target as I put more and more into lua > and less and less in Metapost. I have also been playing chase with the > development of luametatex (and have fallen behind). > > Alan > Thanks for the modified documentation of the graph macros. It has been a great help. Is it in the lmtx distribution somewhere? I read about the upcoming luagraph in mag-1104-mkiv.pdf (This Way 11/11/2019) and have also played a bit with LuaMetaFun and Aditya's blog post. Looking forward to that development, thank you! John --0000000000001085b805e50c415c Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Tue, Jul 26, 2022 at 2:10 PM Alan <<= a href=3D"mailto:braslau.list@comcast.net">braslau.list@comcast.net>= wrote:
On Thu, 21 Jul 2022 17:56:45 -0400
John Kitzmiller <j= kitzm@gmail.com> wrote:

> (Apologies for double-dipping, but usage direction for the
> least-squares fit extension in m-graph would be a gift.)

The least-squares fit (to a polynomial) is a deterministic calculation,
not an arbitrary non-linear search. As such, it is very robust.

Certain (useful) functions, a Gaussian peak for example, can be
suitably transformed to a polynomial function, so these are handled as
well, robustly.

Examples are given as comments in mp-grap.mpiv that you can follow.
Also attached is an adapted version of the original John Hobby
documentation, with extensions described.

Note that the m-graph module is simply a re-write of the John Hobby
graph macros, taking advantage of floating-point MetaPost (thus
simplified).

%%%%%%%%%%%%%%%%%%%%%%%%

I have been working on a completely new luagraph module that does much
in lua. It has, notably, arbitrary coordinate systems.

This has been a moving target as I put more and more into lua
and less and less in Metapost. I have also been playing chase with the
development of luametatex (and have fallen behind).

Alan

Thanks for the modif= ied documentation of the graph macros. It has been a great help. Is it in t= he lmtx distribution somewhere?

I read about the upcoming luagraph=C2=A0in=C2=A0mag-1104-mkiv.pdf= (This Way 11/11/2019) and have also played a bit with LuaMetaFun and Adity= a's blog post. Looking forward to that development, thank you!

John
--0000000000001085b805e50c415c-- --===============7465288737680612971== 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== --===============7465288737680612971==--