From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/71703 Path: news.gmane.org!not-for-mail From: Paul Menzel Newsgroups: gmane.comp.tex.context Subject: Re: Plotting a graph of a function f, like f(x) = e^x, with MetaPost Date: Thu, 13 Oct 2011 00:13:38 +0200 Message-ID: <1318457618.1055.24.camel@mattotaupa> References: <1318373112.3726.35.camel@mattotaupa> <20111012053642.GA53825@iram-hb-003386.extra.cea.fr> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0857366170==" X-Trace: dough.gmane.org 1318457644 4842 80.91.229.12 (12 Oct 2011 22:14:04 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 12 Oct 2011 22:14:04 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Thu Oct 13 00:13:59 2011 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RE73n-0008K2-6v for gctc-ntg-context-518@m.gmane.org; Thu, 13 Oct 2011 00:13:59 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 12EAACB037; Thu, 13 Oct 2011 00:13:58 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id b6mIQrk+Ol8C; Thu, 13 Oct 2011 00:13:55 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 3E74BCB031; Thu, 13 Oct 2011 00:13:55 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id D5CCACB031 for ; Thu, 13 Oct 2011 00:13:53 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id SdEv899S5nCF for ; Thu, 13 Oct 2011 00:13:42 +0200 (CEST) Original-Received: from filter1-nij.mf.surf.net (filter1-nij.mf.surf.net [195.169.124.152]) by balder.ntg.nl (Postfix) with ESMTP id 7A832CB030 for ; Thu, 13 Oct 2011 00:13:42 +0200 (CEST) Original-Received: from mail.gw90.de (mail.gw90.de [188.40.100.199]) by filter1-nij.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p9CMDfuO007545 for ; Thu, 13 Oct 2011 00:13:41 +0200 Original-Received: from f053046227.adsl.alicedsl.de ([78.53.46.227] helo=[192.168.178.21]) by mail.gw90.de with esmtpsa (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.69) (envelope-from ) id 1RE73b-0004Ns-EN for ntg-context@ntg.nl; Wed, 12 Oct 2011 22:13:47 +0000 In-Reply-To: <20111012053642.GA53825@iram-hb-003386.extra.cea.fr> X-Mailer: Evolution 3.0.3-2 X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=188.40.100.199; country=DE; latitude=51.0000; longitude=9.0000; http://maps.google.com/maps?q=51.0000,9.0000&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 07FHWdFig - 34f50cdd7269 - 20111013 X-Scanned-By: CanIt (www . roaringpenguin . com) on 195.169.124.152 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:71703 Archived-At: --===============0857366170== Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature"; boundary="=-veR1AHpjiTGZnbQUc61n" --=-veR1AHpjiTGZnbQUc61n Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Dear Alan, 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 =C2=BBnow=C2=AB you mean MetaPost= v2, do not you? 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. > The graph package is pretty clever, and I am working on proposals on > how to extend/rewrite this taking advantage of the new metapost > handling of large and small numbers. Perfect! > To plot a function, you can create a path, as in > path p ; p :=3D=20 > for i=3D0 upto 1000: > hide (x :=3D i/1000 ;)=20 > if (i>0) -- fi (x,exp(x)) > endfor ; > gplot p ; What module do I need for `gplot`? Looking at the MetaFun manual [8] I found out MetaFun even provides a macro `function` which probably does exactly what you do above with the for loop. draw function(2,"x","x**(-0.5)",1,10,1) xyscaled (2cm,2cm) withpen pencircle scaled 5mm withcolor transparent(1,.5,yellow) ; > One proposal will be to make this even easier with new macros. Another perfect! 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. Thanks, Paul [8] http://www.pragma-ade.com/general/manuals/metafun-s.pdf --=-veR1AHpjiTGZnbQUc61n Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iEYEABECAAYFAk6WERMACgkQPX1aK2wOHViixACghrEaWcPh3/GJrcZFFjOWBuCu KUcAn1MVwwEanVYek/roohTXjLFXj1m+ =lXPO -----END PGP SIGNATURE----- --=-veR1AHpjiTGZnbQUc61n-- --===============0857366170== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --===============0857366170==--