From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/71908 Path: news.gmane.org!not-for-mail From: Paul Menzel Newsgroups: gmane.comp.tex.context Subject: Re: MetaPost: Confusion with `function()` and `xyscaled` Date: Sun, 23 Oct 2011 16:12:03 +0200 Message-ID: <1319379123.4815.24.camel@mattotaupa> References: <1319152475.12677.8.camel@mattotaupa> <1319197081.3766.32.camel@mattotaupa> <4EA1896D.9030302@gmx.net> <1319210803.3766.37.camel@mattotaupa> <4EA198E0.40406@gmx.net> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2019141898==" X-Trace: dough.gmane.org 1319379139 11915 80.91.229.12 (23 Oct 2011 14:12:19 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 23 Oct 2011 14:12:19 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Sun Oct 23 16:12:14 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 1RHymc-0003Ho-OE for gctc-ntg-context-518@m.gmane.org; Sun, 23 Oct 2011 16:12:14 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 37E8BCB084; Sun, 23 Oct 2011 16:12:14 +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 EjQvAk2g-iov; Sun, 23 Oct 2011 16:12:11 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 9D585CB05E; Sun, 23 Oct 2011 16:12:11 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 7C9D2CB05E for ; Sun, 23 Oct 2011 16:12:10 +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 USl5+GAveIrc for ; Sun, 23 Oct 2011 16:12:08 +0200 (CEST) Original-Received: from filter3-ams.mf.surf.net (filter3-ams.mf.surf.net [192.87.102.71]) by balder.ntg.nl (Postfix) with ESMTP id 82DC2CB04D for ; Sun, 23 Oct 2011 16:12:08 +0200 (CEST) Original-Received: from mail.gw90.de (mail.gw90.de [188.40.100.199]) by filter3-ams.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p9NEC5nA008629 for ; Sun, 23 Oct 2011 16:12:07 +0200 Original-Received: from f053036004.adsl.alicedsl.de ([78.53.36.4] 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 1RHymi-0002sr-3H for ntg-context@ntg.nl; Sun, 23 Oct 2011 14:12:20 +0000 In-Reply-To: <4EA198E0.40406@gmx.net> 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: 0cFMec5X9 - e33d1ff3a864 - 20111023 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.71 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:71908 Archived-At: --===============2019141898== Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature"; boundary="=-+c3iqLsy4wof1UofMheY" --=-+c3iqLsy4wof1UofMheY Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Am Freitag, den 21.10.2011, 18:08 +0200 schrieb Peter Rolf: > Am 21.10.2011 17:26, schrieb Paul Menzel: > > Am Freitag, den 21.10.2011, 17:02 +0200 schrieb Peter Rolf: > >=20 > >> I agree, this is confusing on the first sight. But scaling is not mean= t > >> as 'scaling to' a dimension. In fact is is just a simple multiplicatio= n. > >> The reason why it seems to work this way with > >> 'fullsquare' and such predefined paths is, that they have a 'neutral' > >> size/scale (bounding box size of filled path is (1pt,1pt)). > >=20 > > So how can I find out what the dimension of the path of a function is? > > Not scaling it, it also looked pretty small, so I am guessing (1pt,1pt)= . >=20 > I guess in this case its size is (10,log(10)) + pen size when drawn. That was it kind of. Probably the most of my confusion resulting from the use of the inverse function. So all in all the width is 1 =E2=80=93 the x-coordinates seem to be scaled = to the width of 1 =E2=80=93 and the height is 10, as ten is the highest value. Therefore the width has to be multiplied with 10cm to get it to 10cm and since the height it 10 already multiplying it with 2cm gets it to 20cm. > >> Multiplying such a path with (x,y) gives an object with size (1*x,1*y)= . > >> In general: if the bounding box of an object has the size (a,b) and yo= u > >> scale it with (x,y), the resulting object has a size of (ax,by). That'= s > >> all the magic. > >=20 > > but if you use numbers with a unit than it should not be multiplied but > > expanded to that value, should not it? Otherwise I am unsure how > > multiplication works with a unit. > > 1pt is the base unit in MP (used if no dimension is given; probably > stored as 65536sp (scaled point) units). In the manual I only found bp for =C2=BBbig point=C2=AB, which equal PostSc= ript points equaling 1/72 of an inch. > Now if you use pure numerics for scale, such as 'xscaled 2', this is > interpreted as '2pt' (or 2*65536sp). If you use any dimension, it is > also converted into scaled points. All the same for MP. >=20 > If I'm right this should all be the same (untested) >=20 > xscaled 2 > xscaled 2pt This gives the same result. > xscaled (2*65536sp) I could not test the above because the numbers got too big and MetaPost complained. > 1 =3D 1pt =3D 65536sp [=E2=80=A6] Thanks, Paul --=-+c3iqLsy4wof1UofMheY 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) iEYEABECAAYFAk6kILMACgkQPX1aK2wOHVhYRACfaRrHXsFJnBNomzAlI1ptCVrG o1kAn2YHKX3wAGGEd/h9ZKJM2AgKfMNV =w+Ff -----END PGP SIGNATURE----- --=-+c3iqLsy4wof1UofMheY-- --===============2019141898== 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 ___________________________________________________________________________________ --===============2019141898==--