ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Mikael P. Sundqvist" <mickep@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Fwd:  metafun 2
Date: Mon, 19 Aug 2019 21:20:24 +0200	[thread overview]
Message-ID: <CAHy-LL_J8wKtTXgKVFyuHwYTgA2f8OKR9LCP-Nbb=MxsrVKLmQ@mail.gmail.com> (raw)
In-Reply-To: <CAHy-LL9D5NB6qZYj+QynCWR-rqk6suD3reepLUgO8KOwrjwnXA@mail.gmail.com>


[-- Attachment #1.1: Type: text/plain, Size: 2594 bytes --]

On Wed, Aug 14, 2019 at 5:37 PM Hans Hagen <j.hagen@xs4all.nl> 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

[-- Attachment #1.2: Type: text/html, Size: 3948 bytes --]

[-- Attachment #2: Type: text/plain, Size: 493 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

  parent reply	other threads:[~2019-08-19 19:20 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-08-14  9:54 Hans Hagen
2019-08-14 10:18 ` Henri Menke
2019-08-14 11:16   ` Hans Hagen
2019-08-14 11:31     ` Floris van Manen
2019-08-14 11:53       ` Hans Hagen
2019-08-15  6:05   ` Arthur Reutenauer
2019-08-14 14:22 ` Otared Kavian
2019-08-14 14:49   ` Hans Hagen
2019-08-14 14:53   ` Aditya Mahajan
2019-08-14 14:58     ` Otared Kavian
2019-08-14 15:11       ` Wolfgang Schuster
2019-08-14 15:34       ` Hans Hagen
2019-08-14 14:58 ` Mikael P. Sundqvist
2019-08-14 15:37   ` Hans Hagen
     [not found]     ` <CAHy-LL9D5NB6qZYj+QynCWR-rqk6suD3reepLUgO8KOwrjwnXA@mail.gmail.com>
2019-08-19 19:20       ` Mikael P. Sundqvist [this message]
2019-08-16 23:31 ` Adam Reviczky
2019-08-17  1:27   ` Alan Braslau
2019-08-17  8:52     ` Hans Hagen
2019-08-17 18:12       ` Adam Reviczky
2019-08-19 19:15         ` Jorge Manuel
2019-09-08  8:42 ` Aditya Mahajan
2019-09-08 10:09   ` Otared Kavian
2019-09-08 14:54     ` Aditya Mahajan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAHy-LL_J8wKtTXgKVFyuHwYTgA2f8OKR9LCP-Nbb=MxsrVKLmQ@mail.gmail.com' \
    --to=mickep@gmail.com \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).