From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/40368 Path: news.gmane.org!not-for-mail From: John Devereux Newsgroups: gmane.comp.tex.context Subject: gnuplot module Date: Wed, 16 Apr 2008 20:24:30 +0100 Message-ID: <871w55ppqp.fsf_-_@cordelia.devereux.me.uk> References: <87ej97laff.fsf@cordelia.devereux.me.uk> <48047BB4.8040902@wxs.nl> <87abjvl7z5.fsf@cordelia.devereux.me.uk> <6faad9f00804150346l3b78887drc47e996352df558e@mail.gmail.com> <8763ujl5qc.fsf@cordelia.devereux.me.uk> <6faad9f00804150517s7fe84a08y12231b0601d94ab4@mail.gmail.com> <87y77fjn4y.fsf@cordelia.devereux.me.uk> <6faad9f00804150559j6f2bafd0u3f5e67010e1a5cdc@mail.gmail.com> <87zlrtj09u.fsf@cordelia.devereux.me.uk> <6faad9f00804161129m385c801al9839ca21d56168e@mail.gmail.com> 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: ger.gmane.org 1208374710 23988 80.91.229.12 (16 Apr 2008 19:38:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 16 Apr 2008 19:38:30 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Apr 16 21:38:56 2008 connect(): Connection refused 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 1JmDHy-0006tL-3T for gctc-ntg-context-518@m.gmane.org; Wed, 16 Apr 2008 21:27:26 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id A89FC1FE02; Wed, 16 Apr 2008 21:26:45 +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 10330-02-4; Wed, 16 Apr 2008 21:26:10 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id CF9651FDDF; Wed, 16 Apr 2008 21:25:35 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 6EE051FCDE for ; Wed, 16 Apr 2008 21:25:33 +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 10330-02-2 for ; Wed, 16 Apr 2008 21:24:57 +0200 (CEST) Original-Received: from cordelia.devereux.me.uk (cordelia.devereux.me.uk [217.169.15.178]) by ronja.ntg.nl (Postfix) with ESMTP id CB0AF1FDF9 for ; Wed, 16 Apr 2008 21:24:30 +0200 (CEST) Original-Received: from [217.169.15.178] (helo=cordelia.devereux.me.uk ident=jd) by cordelia.devereux.me.uk with esmtp (Exim 4.69) (envelope-from ) id 1JmDF8-0007vo-8t for ntg-context@ntg.nl; Wed, 16 Apr 2008 20:24:30 +0100 In-Reply-To: <6faad9f00804161129m385c801al9839ca21d56168e@mail.gmail.com> (Mojca Miklavec's message of "Wed\, 16 Apr 2008 20\:29\:24 +0200") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.95 (gnu/linux) 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:40368 Archived-At: "Mojca Miklavec" writes: > On Wed, Apr 16, 2008 at 5:18 PM, John Devereux wrote: >> "Mojca Miklavec" writes: >> >> >> However I have been using context for years, and may well have messed >> >> something up! It seems to work OK with my "normal" documents. Except I >> >> notice \usemodule[gnuplot] does not work. >> > >> > What exactly goes wrong? >> >> I have got this working now too. The problems were: >> >> - the syntax seems to have changed since I originally used it. Used >> to be \startGNUPLOTgraphic now needs to be \startGNUPLOTscript >> >> - I missed the bit on the wiki about enabling write18 >> >> - I was misled by some examples (in the source code) into thinking >> that parameters go in curly brackets, but this does not work for >> me (and fails silently). >> >> So in the source code you have >> >> \startGNUPLOTscript{sin} >> plot sin(x) >> \stopGNUPLOTscript >> \useGNUPLOTgraphic{sin} >> >> but I needed >> >> >> \startGNUPLOTscript[sin] >> plot sin(x) >> \stopGNUPLOTscript >> \useGNUPLOTgraphic[sin] >> >> to make it work. > > I'm sorry about that. Yes, the syntax change is my fault, but it won't > happen again. If I wanted to support > \useGNUPLOTgraphic[sin][1,3][width=.7\textwidth] > and alike, the curly braces didn't fit in so nicely. Yes it's fine, the square brackets are better. > The module has initially been part of ConTeXt (Hans has written most > of it at the beginning), but it was easier to develop it as a module > once I started writing metapost code for the dedicated terminal etc. > > I have removed the faulty examples a few days ago (just didn't upload > the new version yet). I was trying to write code in such a way that > curly braces would work as well for backward compatibility, but failed > to do so (the code is there, but only half of it works). However, all > of these changes have happened rather early in the process and won't > happen again. > > Moreover, it would be nice to get the TikZ terminal working with > ConTeXt (I need to find some time for it, and then finally convince > the gnuplot developers to include it into the binary). I really like gnuplot and the gnuplot module. It is great to be able to include the data inline with the document. And it would be nice to see it part of the distribution. I am using a stock debian gnuplot, so I don't know the implications of the context and TikZ terminals. Does it mean I would not end up with so many *-gnuplot-* files? :) -- John Devereux ___________________________________________________________________________________ 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 : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________