From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/71893 Path: news.gmane.org!not-for-mail From: Peter Rolf Newsgroups: gmane.comp.tex.context Subject: Re: MetaPost: Confusion with `function()` and `xyscaled` Date: Fri, 21 Oct 2011 18:08:00 +0200 Message-ID: <4EA198E0.40406@gmx.net> References: <1319152475.12677.8.camel@mattotaupa> <1319197081.3766.32.camel@mattotaupa> <4EA1896D.9030302@gmx.net> <1319210803.3766.37.camel@mattotaupa> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1319213312 633 80.91.229.12 (21 Oct 2011 16:08:32 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 21 Oct 2011 16:08:32 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Fri Oct 21 18:08:28 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 1RHHe0-00039F-9D for gctc-ntg-context-518@m.gmane.org; Fri, 21 Oct 2011 18:08:28 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 3F5B7CB085; Fri, 21 Oct 2011 18:08:26 +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 IPbn7cSI22Ly; Fri, 21 Oct 2011 18:08:20 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 1F947CB07F; Fri, 21 Oct 2011 18:08:20 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id B655ECB07F for ; Fri, 21 Oct 2011 18:08:18 +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 7rQpfzOiSTik for ; Fri, 21 Oct 2011 18:08:12 +0200 (CEST) Original-Received: from filter2-til.mf.surf.net (filter2-til.mf.surf.net [194.171.167.218]) by balder.ntg.nl (Postfix) with ESMTP id C3E0FCAFFB for ; Fri, 21 Oct 2011 18:08:12 +0200 (CEST) Original-Received: from mailout-de.gmx.net (mailout-de.gmx.net [213.165.64.22]) by filter2-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with SMTP id p9LG88Vl023593 for ; Fri, 21 Oct 2011 18:08:11 +0200 Original-Received: (qmail invoked by alias); 21 Oct 2011 16:08:08 -0000 Original-Received: from ip-95-222-36-122.unitymediagroup.de (EHLO [192.168.178.3]) [95.222.36.122] by mail.gmx.net (mp072) with SMTP; 21 Oct 2011 18:08:08 +0200 X-Authenticated: #24293357 X-Provags-ID: V01U2FsdGVkX1/XvEMt56PXlG2QNdAgg5vIXejOjHDaiONTzW+kss Yfj6Kv8Xd51ohm User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:7.0.1) Gecko/20110929 Thunderbird/7.0.1 In-Reply-To: <1319210803.3766.37.camel@mattotaupa> X-Enigmail-Version: 1.3.2 X-Y-GMX-Trusted: 0 X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=213.165.64.22; 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: 0bFLs88EO - f2d37b02625f - 20111021 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.218 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:71893 Archived-At: Am 21.10.2011 17:26, schrieb Paul Menzel: > Dear Peter, > > > thank you for your answer. > > Am Freitag, den 21.10.2011, 17:02 +0200 schrieb Peter Rolf: > >> I agree, this is confusing on the first sight. But scaling is not meant >> as 'scaling to' a dimension. In fact is is just a simple multiplication. >> 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)). > > 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). I guess in this case its size is (10,log(10)) + pen size when drawn. > >> 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 you >> scale it with (x,y), the resulting object has a size of (ax,by). That's >> all the magic. > > 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). 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. If I'm right this should all be the same (untested) xscaled 2 xscaled 2pt xscaled (2*65536sp) 1 = 1pt = 65536sp >> I must admit that this wasn't clear to me before you came up with your >> question. So thanks for that. :-) > > Thank you for your answer. As written above it is still not entirely > clear to me. I hope you can remedy my last confusion. > > > Thanks a lot, > > Paul > > > > ___________________________________________________________________________________ > 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 > ___________________________________________________________________________________ ___________________________________________________________________________________ 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 ___________________________________________________________________________________