From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/16042 Path: main.gmane.org!not-for-mail From: Floris van Manen Newsgroups: gmane.comp.tex.context Subject: Re[2]: no graph after compilation Date: Wed, 11 Aug 2004 17:57:39 +0200 Sender: ntg-context-bounces@ntg.nl Message-ID: <713195493.20040811175739@klankschap.nl> References: <4.3.1.2.20040810101921.00b335b8@cits1.stanford.edu> <4.3.1.2.20040810101921.00b335b8@cits1.stanford.edu> <4.3.1.2.20040810113429.02b62a68@cits1.stanford.edu> <41191C52.1080802@wxs.nl> <1607743656.20040810223551@klankschap.nl> <411A174D.5040705@arcor.de> <169359806.20040811153844@klankschap.nl> <411A267C.2090908@seznam.cz> <93969690.20040811160929@klankschap.nl> <492513952.20040811164447@klankschap.nl> <814197070.20040811172447@klankschap.nl> Reply-To: Floris van Manen , mailing list for ConTeXt users NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1092239887 10680 80.91.224.253 (11 Aug 2004 15:58:07 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 11 Aug 2004 15:58:07 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Wed Aug 11 17:57:52 2004 Return-path: Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BuvU8-0006WJ-00 for ; Wed, 11 Aug 2004 17:57:52 +0200 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id E5B1A12784; Wed, 11 Aug 2004 17:57:51 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (ronja.vet.uu.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 11462-01; Wed, 11 Aug 2004 17:57:49 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 8EE261277E; Wed, 11 Aug 2004 17:57:49 +0200 (CEST) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 85CCD1277E for ; Wed, 11 Aug 2004 17:57:48 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (ronja.vet.uu.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 11397-02-2 for ; Wed, 11 Aug 2004 17:57:48 +0200 (CEST) Original-Received: from smtp-vbr2.xs4all.nl (unknown [194.109.24.22]) by ronja.ntg.nl (Postfix) with ESMTP id 0130B12778 for ; Wed, 11 Aug 2004 17:57:48 +0200 (CEST) Original-Received: from vm.lan (213-84-11-60.adsl.xs4all.nl [213.84.11.60]) by smtp-vbr2.xs4all.nl (8.12.11/8.12.11) with ESMTP id i7BFvjls072293 for ; Wed, 11 Aug 2004 17:57:45 +0200 (CEST) (envelope-from vm@klankschap.nl) X-Mailer: The Bat! (v2.10.01) Personal X-Priority: 3 (Normal) Original-To: mailing list for ConTeXt users In-Reply-To: X-Virus-Scanned: by XS4ALL Virus Scanner X-Virus-Scanned: by 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: , Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: by amavisd-new at ntg.nl Xref: main.gmane.org gmane.comp.tex.context:16042 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:16042 >> PG> currentpicture :=nullpicture; >> PG> draw pic scaled 3 ; >> PG> >> PG> clears the first picture. >> >> >> but i only intend to draw one picture... PG> PG> is this a question? Did you try the code? i did, but it has side-effects... it will scale, but the color disappears too. try. ----- %% interface=english output=pdftex \setupcolors[state=start] \starttext \startuseMPgraphic{dummy} drawoptions(withpen pencircle scaled .1pt) ; w0 := 0cm ; w1 := 1.2cm ; w2 := 2.7 cm ; w3 := 3.0cm ; ww0 := 0.96cm ; ww1 := 1.2cm ; ww2 := 1.8cm ; ww3 := 2.4cm ; path p ; p := (w0,w0)--(w0,ww0)--(w1,ww1)--(w3,ww2)--(w3,w0)--cycle ; drawoptions(withpen pencircle scaled .1pt withcolor .625yellow) ; draw hlingrid(0, 5, 1, 3cm, 3cm) ; draw vlingrid(0, 10, 1, 3cm, 3cm) ; drawoptions(withpen pencircle scaled 1mm withcolor black) ; dotlabel.top ("1" , point 1 of p) ; dotlabel.top ("2" , point 2 of p) ; dotlabel.top ("3" , point 3 of p) ; %%%%% enable/disable this section %%%%%%%%%% picture pic ; pic := currentpicture ; currentpicture := nullpicture ; draw pic scaled 1.0 ; %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \stopuseMPgraphic \useMPgraphic{dummy} \stoptext