From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/53556 Path: news.gmane.org!not-for-mail From: =?ISO-8859-2?Q?Bo=B9tjan_Vesnicer?= Newsgroups: gmane.comp.tex.context Subject: Re: [MP] labels of points on a circle Date: Mon, 19 Oct 2009 15:19:16 +0200 Message-ID: <1ea4ae670910190619j7c29b0b2q1b53e1605ef29fbe@mail.gmail.com> References: <84134E24-3D75-4F4B-A6CE-9B07ECD3DC4B@me.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1255958383 17020 80.91.229.12 (19 Oct 2009 13:19:43 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 19 Oct 2009 13:19:43 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Oct 19 15:19:33 2009 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.50) id 1Mzs97-00081d-9v for gctc-ntg-context-518@m.gmane.org; Mon, 19 Oct 2009 15:19:33 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 5BBDDC9AAF; Mon, 19 Oct 2009 15:19:27 +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 3Rznho6pMhOz; Mon, 19 Oct 2009 15:19:24 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 320A6C9A70; Mon, 19 Oct 2009 15:19:24 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id D541EC9A70 for ; Mon, 19 Oct 2009 15:19:21 +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 GTjWUWRpX7I3 for ; Mon, 19 Oct 2009 15:19:17 +0200 (CEST) Original-Received: from mail-vw0-f197.google.com (mail-vw0-f197.google.com [209.85.212.197]) by balder.ntg.nl (Postfix) with ESMTP id 1486FC9A41 for ; Mon, 19 Oct 2009 15:19:16 +0200 (CEST) Original-Received: by vws35 with SMTP id 35so1659663vws.16 for ; Mon, 19 Oct 2009 06:19:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=dReCBi+e13v47FAtWCuSlDemNOYdQu78LPHDYIJgf2U=; b=nH8TLfvHmeluGKRAu/u0S7UFpILYSmkaSMFfDliaSpTitvWJ89Lad931sg6uNDE+aL iIETs5i8HQ2A5hyefbEF+qjM5SleH76wZTRmZhrx0J279vHy7vtt2MaFAa6fp1f1/Glx JiKpAcEQCtqHw/oY73GDckOhueRRc0BivLvjU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=aP/VG8eNuwe2xOEX3BXwY6LQkVrqQghn1dWV/zLjwcR6Bme8wEavyfzYfT8RYEs2+3 O2mjCIWLCoDGpMuPa2dvD5P1Z7pLDz1eqOlndTPwDc495WB5d5sFgn0BuEfWWzVZwEfE cIkJVYktoiy3pSP/Mrmo7LVcwrrvDeMZjMsTU= Original-Received: by 10.220.13.224 with SMTP id d32mr8571757vca.21.1255958356065; Mon, 19 Oct 2009 06:19:16 -0700 (PDT) In-Reply-To: <84134E24-3D75-4F4B-A6CE-9B07ECD3DC4B@me.com> 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:53556 Archived-At: Hi Dalyoung, You can try to adapt the following snippet: numeric i; pickup pencircle scaled 4pt; for i =3D 1 upto 10: z[i] =3D dir(uniformdeviate 360); drawdot z[i] scaled 4cm; label(decimal(i), z[i] scaled 4.3cm); endfor; Best regards, Bostjan On Mon, Oct 19, 2009 at 2:48 PM, dalyoung wrote: > Hi all, > > To draw 9 points with labels, I used the following code. > > \startbuffer[point2] > path p; > numeric i; i=3D1; > for j =3D0.5,1.3,2.5,3,4,4.8,6,7.2,7.9: > z[i] =3D dir(j*45) scaled 4cm; > i:=3D i+1; > endfor; > p :=3D z1..z2..z3..z4..z5..z6..z7..z8..z9..cycle; > draw p; > drawpoints p; > drawpointlabels p; > \stopbuffer > \placefigure[middle][]{}{\processMPbuffer[point2]} > > Then it draw everything well except writing labels inside the circle. How > can I write the labels of the =A0points outside of the circle? > > I'd like to draw 9 points randomly on a circle. Is there a nice way to do > it? > > Thank you. > > Best regards, > > Dalyoung_________________________________________________________________= __________________ > 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 =A0: http://www.pragma-ade.nl / http://tex.aanhet.net > archive =A0: http://foundry.supelec.fr/projects/contextrev/ > wiki =A0 =A0 : http://contextgarden.net > _________________________________________________________________________= __________ > ___________________________________________________________________________= ________ If your question is of interest to others as well, please add an entry to t= he Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-cont= ext webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________= ________