From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/22851 Path: news.gmane.org!not-for-mail From: Mojca Miklavec Newsgroups: gmane.comp.tex.context Subject: Re: function plotting (was: Re: Q: about \externalfile from metafun-p.pdf) Date: Tue, 4 Oct 2005 19:48:34 +0200 Message-ID: <6faad9f00510041048l25e0b9f0m@mail.gmail.com> References: <20051002172755.GA17649@none.at> <43401ECE.2030309@creutzig.de> <20051002185852.GB19384@none.at> <434044D5.8090109@creutzig.de> <20051003080358.GA3782@none.at> <434169BB.4000008@creutzig.de> <20051004082954.GA20838@none.at> Reply-To: Mojca Miklavec , mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1128449817 18993 80.91.229.2 (4 Oct 2005 18:16:57 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 4 Oct 2005 18:16:57 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Tue Oct 04 20:16:51 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 1EMrIv-0004G4-2r for gctc-ntg-context-518@m.gmane.org; Tue, 04 Oct 2005 20:14:17 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id D52CD127D1; Tue, 4 Oct 2005 20:14: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 31545-01-2; Tue, 4 Oct 2005 20:14:12 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id BC4B5127C5; Tue, 4 Oct 2005 20:14:12 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 9B3F4127B6 for ; Tue, 4 Oct 2005 20:14:11 +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 31545-01 for ; Tue, 4 Oct 2005 20:14:09 +0200 (CEST) Original-Received: from nproxy.gmail.com (nproxy.gmail.com [64.233.182.193]) by ronja.ntg.nl (Postfix) with ESMTP id A5156127D1 for ; Tue, 4 Oct 2005 19:48:35 +0200 (CEST) Original-Received: by nproxy.gmail.com with SMTP id o25so258955nfa for ; Tue, 04 Oct 2005 10:48:34 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=onXBbvC5zDKrM6mlfHRP7rfjO8SpFt19xWDJx1N1x9VsHtp2jNFwofcx6USrjqc+mcqbCbfkbDqHYNP+Yg6cGk/pGPaU2t2QvYVBWc78jKggI87aVvpLYMMkTVsappayp8LfhXJubdkGZSqlMYSaZc664rRUA/5ze+lXaUhgnl0= Original-Received: by 10.48.226.17 with SMTP id y17mr309107nfg; Tue, 04 Oct 2005 10:48:34 -0700 (PDT) Original-Received: by 10.48.247.14 with HTTP; Tue, 4 Oct 2005 10:48:34 -0700 (PDT) Original-To: mailing list for ConTeXt users In-Reply-To: <20051004082954.GA20838@none.at> Content-Disposition: inline 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-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on smtp.ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:22851 Archived-At: Alexander Lazic wrote: > On Mon 03.10.2005 19:26, Christopher Creutzig wrote: > > > > MetaPost is not really a function plotter. So, yes, you have to use > >some sort of loop, although there may be some predefined macros hiding > >them. > > Is there a better way in ConTeXt/tex for this?! > > Should i use some external Programms for this? > > al ;-) I use gnuplot which makes graphs of superb visual quality and has extensive support for many different function manipulations and weird stuff that you want to do with it. I do something like: set terminal latex set output "file.tex" set title '\bf My wonderful function $sin(\omega t)$' set xlabel '$t\ \rm[s]$' set ylabel '$A$' plot sin(x) and then "\input file" inside of the main LaTeX file. Gnuplot cannot make output in ConTeXt (yet), but perhaps you can include the resulting PDFs in your ConTeXt source. (Gnuplot is one of the very few examples where I still use LaTeX.) You can also output the (ConTeXt-friendly) metapost (with set terminal), but you lose on quality. Mojca