From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/24466 Path: news.gmane.org!not-for-mail From: David Arnold Newsgroups: gmane.comp.tex.context Subject: drawdot fails? Date: Sun, 18 Dec 2005 13:57:00 -0800 Message-ID: <8C96D822-433E-490F-A84B-89FB0B6B3114@cox.net> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 (Apple Message framework v746.2) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1134943220 1179 80.91.229.2 (18 Dec 2005 22:00:20 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 18 Dec 2005 22:00:20 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Sun Dec 18 23:00:12 2005 Return-path: Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by ciao.gmane.org with esmtp (Exim 4.43) id 1Eo6Zg-00054z-7P for gctc-ntg-context-518@m.gmane.org; Sun, 18 Dec 2005 23:00:12 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id D043C127A0; Sun, 18 Dec 2005 23:00:11 +0100 (CET) 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 21696-02; Sun, 18 Dec 2005 23:00:11 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 20C4F127D3; Sun, 18 Dec 2005 22:58:19 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id B0003127D3 for ; Sun, 18 Dec 2005 22:58:17 +0100 (CET) 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 21696-01-2 for ; Sun, 18 Dec 2005 22:58:16 +0100 (CET) Original-Received: from fed1rmmtao04.cox.net (fed1rmmtao04.cox.net [68.230.241.35]) by ronja.ntg.nl (Postfix) with ESMTP id 732DA127A0 for ; Sun, 18 Dec 2005 22:58:12 +0100 (CET) Original-Received: from [10.0.1.2] (really [70.191.56.23]) by fed1rmmtao04.cox.net (InterMail vM.6.01.05.02 201-2131-123-102-20050715) with ESMTP id <20051218215626.CDKK17690.fed1rmmtao04.cox.net@[10.0.1.2]> for ; Sun, 18 Dec 2005 16:56:26 -0500 Original-To: Context Mailing List List X-Mailer: Apple Mail (2.746.2) X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.5 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:24466 Archived-At: All, I am wondering why my dots are not filled with the drawdot command. \startuseMPgraphic{yeqx2} %define function vardef f(expr x)= x*x enddef; %define clipping path path cpath; cpath:=(-5,-5)--(5,-5)--(5,5)--(-5,5)--cycle; %create function path path p; p:=(-5,f(-5)); for x=-5 step .1 until 5: p:=p--(x,f(x)); endfor; p:=p--(5,f(5)); %clip function path to clipping path p:=p cutbefore cpath; p:=reverse p; p:=p cutbefore cpath; %initialize scale numeric u; 10u=2in; %draw the grid for k=-5u step 1u until 5u: draw (k,-5u)--(k,5u) withcolor 0.85white; draw (-5u,k)--(5u,k) withcolor 0.85white; endfor; %draw axes drawdblarrow (-5.2u,0)--(5.2u,0); drawdblarrow (0,-5.2u)--(0,5.2u); %label axes label.rt(btex $x$ etex, (5.2u,0)); label.top(btex $y$ etex, (0,5.2u)); label.bot(btex $5$ etex, (5u,0)); label.lft(btex $5$ etex, (0,5u)); %scale function path p:=p scaled u; %draw function path drawdblarrow p withcolor blue; %draw plotted points for x=-2 step 1 until 2: drawdot ((x,f(x)) scaled u) withpen pencircle scaled 4pt; endfor; \stopuseMPgraphic \placefigure{The simple parabola.}{\useMPgraphic{yeqx2}}