From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/34347 Path: news.gmane.org!not-for-mail From: "Mikael Persson" Newsgroups: gmane.comp.tex.context Subject: Re: Keeping it single valued Date: Thu, 19 Apr 2007 09:09:00 +0200 Message-ID: References: <038B14B4-72BC-4061-BCFA-74F6A97FEF5A@suddenlink.net> 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: sea.gmane.org 1176966563 14095 80.91.229.12 (19 Apr 2007 07:09:23 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 19 Apr 2007 07:09:23 +0000 (UTC) To: "mailing list for ConTeXt users" Original-X-From: ntg-context-bounces@ntg.nl Thu Apr 19 09:09:17 2007 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by lo.gmane.org with esmtp (Exim 4.50) id 1HeQlY-0007lL-PC for gctc-ntg-context-518@m.gmane.org; Thu, 19 Apr 2007 09:09:16 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 24E531FFF0; Thu, 19 Apr 2007 09:09:16 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 32221-01-6; Thu, 19 Apr 2007 09:09:10 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 73FF91FFE4; Thu, 19 Apr 2007 09:09:10 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id F08B01FFE4 for ; Thu, 19 Apr 2007 09:09:06 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 32221-01-5 for ; Thu, 19 Apr 2007 09:09:02 +0200 (CEST) Original-Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.179]) by ronja.ntg.nl (Postfix) with ESMTP id 0A5FE1FFE0 for ; Thu, 19 Apr 2007 09:09:01 +0200 (CEST) Original-Received: by py-out-1112.google.com with SMTP id a73so419910pye for ; Thu, 19 Apr 2007 00:09:00 -0700 (PDT) Original-Received: by 10.65.251.17 with SMTP id d17mr2963939qbs.1176966540573; Thu, 19 Apr 2007 00:09:00 -0700 (PDT) Original-Received: by 10.64.204.1 with HTTP; Thu, 19 Apr 2007 00:09:00 -0700 (PDT) In-Reply-To: <038B14B4-72BC-4061-BCFA-74F6A97FEF5A@suddenlink.net> Content-Disposition: inline X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.9 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 X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:34347 Archived-At: Hi Arnold, this is no exact answer, but possibly the reason why: First, have a look at: \starttext \startbuffer[figure] numeric scf, t[]; 3.2scf=2.4in; path fun; fun:=(0,-1)..(1,.5){right}..(1.9,.2){right}..{curl .1}(3.2,2); fun:=fun scaled scf; drawpath fun; drawpoints fun; \stopbuffer \placefigure [][fig:one] {Caption.} {\processMPbuffer[figure]} \startbuffer[figure] numeric scf, yscl, t[]; 3.2scf=2.4in; path fun; yscl=.1; %keep the function single valued fun:=(0,-1yscl)..(1,.5yscl){right}..(1.9,.2yscl){right}..{curl .1} (3.2,2yscl); fun:=fun scaled scf; drawpath fun shifted (3cm,0cm); drawpoints fun shifted (3cm,0cm); fun:=fun yscaled (1/yscl); drawpath fun shifted (-3cm,0cm); drawpoints fun shifted (-3cm,0cm); \stopbuffer \placefigure [][fig:one] {Caption.} {\processMPbuffer[figure]} \stoptext Let us focus on the first two points. In the upper figure: The horizontal distance between point 1 and 2 is less than the vertical distance. If you want the path from 1 to 2 to be part of a circle, where the "top" of the circle should be at point 2 (whis is so because of the {right} option at point 2) this forces the "leftmost" part of the circle to be in the path and also to be left of point 1. This gives necessary a "multivalued" function In the lower right figure: Now the horizontal distance between point 1 and 2 is greater than the vertical distance. Hence the "leftmost" part of the circle is not in the path and the function gets single valued. This is more or less it. I'm not 100% sure the path from 1 to 2 is part of a circle, but the reason is probably the same. With best regards, Micke P On 4/19/07, David Arnold wrote: > All, > > This example from the Metapost manual is beyond my expertise. The > second figure is sweet, just what I would want. Can anyone wax > philosophic for a bit and explain why the y-scaling keeps the second > function single valued? > > starttext > > \startbuffer[figure] > numeric scf, t[]; > 3.2scf=2.4in; > path fun; > fun:=(0,-1)..(1,.5){right}..(1.9,.2){right}..{curl .1}(3.2,2); > fun:=fun scaled scf; > draw fun; > \stopbuffer > > \placefigure > [][fig:one] > {Caption.} > {\processMPbuffer[figure]} > > \startbuffer[figure] > numeric scf, yscl, t[]; > 3.2scf=2.4in; > path fun; > yscl=.1; %keep the function single valued > fun:=(0,-1yscl)..(1,.5yscl){right}..(1.9,.2yscl){right}..{curl .1} > (3.2,2yscl); > fun:=fun yscaled (1/yscl); > fun:=fun scaled scf; > draw fun; > \stopbuffer > > \placefigure > [][fig:one] > {Caption.} > {\processMPbuffer[figure]} > > \stoptext > _______________________________________________ > ntg-context mailing list > ntg-context@ntg.nl > http://www.ntg.nl/mailman/listinfo/ntg-context >