From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/104843 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: "Mikael P. Sundqvist" Newsgroups: gmane.comp.tex.context Subject: Fwd: metafun 2 Date: Mon, 19 Aug 2019 21:20:24 +0200 Message-ID: References: <174f2ea4-37ef-046c-198b-a9c7b3912e4a@xs4all.nl> <57a6706e-a2a4-0701-5f36-92cce8535c86@xs4all.nl> Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0188339792493122957==" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="221773"; mail-complaints-to="usenet@blaine.gmane.org" To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Aug 19 21:21:10 2019 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hznDI-000vac-Ig for gctc-ntg-context-518@m.gmane.org; Mon, 19 Aug 2019 21:21:08 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 550AB153722; Mon, 19 Aug 2019 21:20:56 +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 zNxPszkXnJxL; Mon, 19 Aug 2019 21:20:55 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 7422B153726; Mon, 19 Aug 2019 21:20:55 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 61AE5153523 for ; Mon, 19 Aug 2019 21:20:54 +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 2KUJdG1Fjqw0 for ; Mon, 19 Aug 2019 21:20:53 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.222.171; helo=mail-qk1-f171.google.com; envelope-from=mickep@gmail.com; receiver= Original-Received: from mail-qk1-f171.google.com (mail-qk1-f171.google.com [209.85.222.171]) (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 64BE4153390 for ; Mon, 19 Aug 2019 21:20:53 +0200 (CEST) Original-Received: by mail-qk1-f171.google.com with SMTP id d79so2389753qke.11 for ; Mon, 19 Aug 2019 12:20:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=/2I7XgK9IP7Jxclq1f98iqZGu6NYiVNCJSMNl3rW2uI=; b=mNnVIfMSekhbaQHDics7OYH3PB8Gghz4f9m4q/0sZ6Kg4T4xdegeJagQCRL6X3aNVl 2ukvcWjj6edV9tcC7USlCWzd/ZUydLX2v50zGVRfA5SBlw0DUeK22Y+YfNcfWkhTx/bc 8WBTErp4g+wG9mfzBpnRaQ+HoO8PbSC77j3yiE7uyk5yCi9yKMn/rVclGmR1u4Gr3l5M lMabxjkQ/GTRa/+hNeA+DlrkKmdDD1nWjJMrU1gK/xrEhX+yQYqrHlzVtlRpcpwSdjAe 7ECOh3PQeHxeiTspd1YtNS0+bpXDKlLNsc1c/2TAqVr9hnJLsylkq4s6GdD9yrQH9mdP Eheg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=/2I7XgK9IP7Jxclq1f98iqZGu6NYiVNCJSMNl3rW2uI=; b=W4MsYfvLZVxyQHYclGYN1+nss7JcWr6cFApRJeHR0Og3RsGFZAJOwgRC5ZpE9sP4qp FSscSXAmSAW8JO1dmilbkT/ABmcWD8lfOFB18boBXwIq3VPeQx87sTklLxMa/tMejJlW pGCoC8+REVL9SiB9QVpiRvqo2+YRxsWcjo+v/+fRk1vvj3DiVwTGCKlanI+ZgyNc3rvh wgBe+4r/Pmh7t/oBCG2MH6Z3ctiBoOygs5eTfRht3x1Dv2E0reE4CMg08UvB2A8W7faW fy5ZAjlvpDBre4zSRyNX+7CfnFeMmFc1OAq21k1hWQIFQSKtg70od6sfdbdzi5MGazQL 1v+w== X-Gm-Message-State: APjAAAXNTczdyo/VUslfkwQDK1rtujP627NYAUhGj0pw+gvsLSfmHqal 3qgcqnqaYuZqN1QtBBkMdOHqBIa57/4t8Dm05eLcrA== X-Google-Smtp-Source: APXvYqwXgUQ8vwmH/UqGAjPAK8v2Hnyw/5JQB4DMIIXCisT49DRFrmkaYtsXbXanh/2Yk6cc5nk7Kc4IxaIbJ5ohsRA= X-Received: by 2002:a37:a484:: with SMTP id n126mr22532283qke.73.1566242451596; Mon, 19 Aug 2019 12:20:51 -0700 (PDT) In-Reply-To: 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.org gmane.comp.tex.context:104843 Archived-At: --===============0188339792493122957== Content-Type: multipart/alternative; boundary="000000000000f5ac3605907d3c97" --000000000000f5ac3605907d3c97 Content-Type: text/plain; charset="UTF-8" On Wed, Aug 14, 2019 at 5:37 PM Hans Hagen wrote: > On 8/14/2019 4:58 PM, Mikael P. Sundqvist wrote: > > > 1) 3d support. This is of course a very big request, but it would also > > be useful for many people. > > yes ... Alan and I are thinking of some (not that we came far yet) > Please keep us updated! :) > > 2) About graphing, it would be nice to be able to do contour polots and > > density plots. I know I asked for contour plots some time ago, and there > > were some examples, but I don't think there was ever some built in > > support for it. Maybe that can be done "easy" with help of lua? I guess > > there exist good algorithms. > > spec needed ... as 'code' can be any function it's mostly a matter of > what to pipe back to mp > I'm not sure what kind of spec you need. What I have in mind (others could complete) is in particular a way to plot the set of (x,y) such that f(x,y)=0 for some given function f and some rectangle in x and y. I made some plots with Mathematica http://www.maths.lth.se/matematiklth/personal/mickep/Contour.pdf (too big for the list) The first plot shows a difficulty with a contour plot, namely intersections. In the second one I added points, and it looks better. In the third plot I have not specified that the expression should be equal to 0. Then Mathematica plots the curves f(x,y)=C for various values of C. In the background it adds a density plot (i.e. a mesh with different colours for different values of the function. In the fourth plot, the regionplot, the pairs (x,y) for which f(x,y)<0 are marked. This is also very useful. In the fifth plot there is only the densityplot, with different colors for different values of f. I don't know how difficult it is to implement this kind of graphics. Also, it could be useful to be able to input the equation f(x,y)=0 and to receive the curves as MetaPost paths. It seems that one can do contour plots with the help of lua if that is something that helps ( http://franko.github.io/graph-toolkit/contour.html). Anything would be better than nothing, and I'm more than happy to test. > > > 3) (small) The possibility to have arrows in coordinate axes. I have not > > had the possibility to test the new features today, and maybe this is > > already built in (drawarrow?), but I mention it since I did not see it > > in the pdf. > > no, but that is rather trivial to add > Good! > > > Again, it is very nice that you work on extending MetaPost/MetaFun > further!! > wel, mp is ... fun (and these extension are somewhat challenging) > > Hans > Fun, indeed! /Mikael --000000000000f5ac3605907d3c97 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Wed, Aug 14, 2019 at 5:37 PM Hans Hagen <j.hagen@xs4all.nl> wrote:
O= n 8/14/2019 4:58 PM, Mikael P. Sundqvist wrote:

> 1) 3d support. This is of course a very big request, but it would also=
> be useful for many people.

yes ... Alan and I are thinking of some (not that we came far yet)

Please keep us updated! :)
=C2=A0
> 2) About graphing, it would be nice to be able to do contour polots an= d
> density plots. I know I asked for contour plots some time ago, and the= re
> were some examples, but I don't think there was ever some built in=
> support for it. Maybe that can be done "easy" with help of l= ua? I guess
> there exist good algorithms.

spec needed ... as 'code' can be any function it's mostly a mat= ter of
what to pipe back to mp

I'm not sur= e what kind of spec you need. What I have in mind (others could complete) i= s in particular a way to plot the set of (x,y) such that f(x,y)=3D0 for som= e given function f and some rectangle in x and y. I made some plots with Ma= thematica


The first plot shows a difficulty with a contour= plot, namely intersections.=C2=A0
In the second one I added poin= ts, and it looks better.
In the third plot I have not specified t= hat the expression should be equal to 0. Then Mathematica plots the curves = f(x,y)=3DC for various values of C. In the background it adds a density plo= t (i.e. a mesh with different colours for different values of the function.=
In the fourth plot, the regionplot, the pairs (x,y) for which f(= x,y)<0 are marked. This is also very useful.
In the fifth plot= there is only the densityplot, with different colors for different values = of f.

I don't know how difficult it is to impl= ement this kind of graphics. Also, it could be useful to be able to input t= he equation f(x,y)=3D0 and to receive the curves as MetaPost paths. It seem= s that one can do contour plots with the help of lua if that is something t= hat helps (http://franko.github.io/graph-toolkit/contour.html).

Anything would be better than nothing, and I'm = more than happy to test.
=C2=A0

> 3) (small) The possibility to have arrows in coordinate axes. I have n= ot
> had the possibility to test the new features today, and maybe this is =
> already built in (drawarrow?), but I mention it since I did not see it=
> in the pdf.

no, but that is rather trivial to add

G= ood!
=C2=A0