ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Paul Menzel <paulepanter@users.sourceforge.net>
To: ntg-context@ntg.nl
Subject: Re: Plotting a graph of a function f, like f(x) = e^x, with MetaPost
Date: Thu, 13 Oct 2011 01:19:35 +0200	[thread overview]
Message-ID: <1318461575.1055.38.camel@mattotaupa> (raw)
In-Reply-To: <CALBOmsZXJUo+5UR=hDcU6N0rZaZvEF+yhLr31nEcT+rxD-+qGw@mail.gmail.com>


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

Am Donnerstag, den 13.10.2011, 00:28 +0200 schrieb Mojca Miklavec:
> On Thu, Oct 13, 2011 at 00:13, Paul Menzel wrote:
> > Am Mittwoch, den 12.10.2011, 07:36 +0200 schrieb Alan Braslau:
> >
> >> Metapost can now perform calculations in double precision floating point.
> >> At this time, it is in the svn version and does not work yet as
> >> such integrated in ConTeXt (through mplib). Taco promises this for soon...
> >
> > great to hear that. Just to clarify, with »now« you mean MetaPost v2, do
> > not you?
> 
> No, 1.750. The version 2 is not quite ready yet, but the version 1.750
> already deals with floating point numbers.

Thank you for the clarification/correction.

> > Taco, I hope you get there without a lot of problems showing
> > up. If you need testers a good option would be to integrate that into
> > ConTeXt Standalone as an option.
> 
> It will become part of distribution as soon as it gets out, but Taco
> was busy enough organizing conference and dozens of other things. Just
> give him some time. I bet that he also wants to update documentation,
> do final bugfixing etc. instead of just releasing a random snapshot.

Of course the user would have to make a conscious decision by enabling
this “beta” release. If people could test this and with the right
announcement I hope that some people would step up to test and
contribute by submitting bug reports or writing documentation.

> > One thing coming to my mind though that hopefully the wheel is not
> > reimplemented. I guess Gnuplot can do a lot already, but on the other
> > probably not as neat as Metapost when we want to color certain areas.
> 
> Can you please specify your question more precisely?

I meant coloring part of the area below a graph. For example if you look
at the graphic for Riemann sums on page 51 of the document »Learning
MetaPost by Doing« [6].

> Gnuplot terminal uses metapost output. Gnuplot has some support for
> transparency, even though I'm not exactly sure if one can specify
> transparent colors for lines, only for fills. But you can always
> simply redefine line type colors to be transparent.
> 
> Gnuplot brings all kinds of other problems like dependency on external
> tool. If you have enough time to create nice plots in metapost, it is
> better to avoid external dependency as a general rule. But if you have
> more questions about it, feel free to ask. I might be able to help
> you.

Well my only question would be, why should someone use Gnuplot then? Is
it only for people already knowing Gnuplot? Or also because it is a
little less work to define the coordinate system and legends?

Otherwise MetaPost seems to include all functionality Gnuplot offers and
seems to offer more possibilities, does not it?

> The ConTeXt terminal was almost included until developers
> realized that they wanted me to throw away some code for handling
> units and replace that code with something buggy (like "size 10cm,10"
> -> (10cm,10cm); "size 10,10cm" -> (0.35cm,10cm) or (25.40cm,10.00cm)
> depending on weather). Now I need to either rewrite part of my code or
> rewrite part of core code or convince them why keeping the old code.

I remember a thread about that [9].


Thanks,

Paul


[6] http://staff.science.uva.nl/~heck/Courses/mptut.pdf
[9] http://www.ntg.nl/pipermail/ntg-context/2010/054196.html

[-- Attachment #1.2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

  reply	other threads:[~2011-10-12 23:19 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-10-11 22:45 Paul Menzel
2011-10-11 22:56 ` Paul Menzel
2011-10-11 22:58 ` Mojca Miklavec
2011-10-12  5:36 ` Alan Braslau
2011-10-12 22:13   ` Paul Menzel
2011-10-12 22:28     ` Mojca Miklavec
2011-10-12 23:19       ` Paul Menzel [this message]
2011-10-13  0:30         ` Mojca Miklavec
2011-10-13  7:32           ` Hans Hagen
2011-10-13  7:59           ` Alan Braslau
2011-10-13  8:04             ` luigi scarso
2011-10-12  6:40 ` luigi scarso

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=1318461575.1055.38.camel@mattotaupa \
    --to=paulepanter@users.sourceforge.net \
    --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).