ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: John Devereux <jdREMOVE@THISdevereux.me.uk>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: gnuplot module
Date: Wed, 16 Apr 2008 20:24:30 +0100	[thread overview]
Message-ID: <871w55ppqp.fsf_-_@cordelia.devereux.me.uk> (raw)
In-Reply-To: <6faad9f00804161129m385c801al9839ca21d56168e@mail.gmail.com> (Mojca Miklavec's message of "Wed\, 16 Apr 2008 20\:29\:24 +0200")

"Mojca Miklavec" <mojca.miklavec.lists@gmail.com> 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
___________________________________________________________________________________


  reply	other threads:[~2008-04-16 19:24 UTC|newest]

Thread overview: 38+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-04-12 20:53 Unable to generate luatex formats Michael Green
2008-04-13  8:02 ` Taco Hoekwater
2008-04-13 11:54   ` Hans Hagen
2008-04-13 10:12 ` Jean Magnan de Bornier
2008-04-15  7:57 ` John Devereux
2008-04-15  9:31   ` Taco Hoekwater
2008-04-15  9:44     ` John Devereux
2008-04-15  9:56       ` Hans Hagen
2008-04-15 10:37         ` John Devereux
2008-04-15 10:46           ` Mojca Miklavec
2008-04-15 11:25             ` John Devereux
2008-04-15 12:17               ` Mojca Miklavec
2008-04-15 12:52                 ` John Devereux
2008-04-15 12:59                   ` Mojca Miklavec
2008-04-16 15:18                     ` John Devereux
2008-04-16 18:29                       ` Mojca Miklavec
2008-04-16 19:24                         ` John Devereux [this message]
2008-04-17 13:42                           ` gnuplot module Mojca Miklavec
2008-04-17 14:23                             ` Henning Hraban Ramm
2008-04-17 14:31                               ` Mojca Miklavec
2008-04-17 14:27                             ` John Devereux
2008-04-17 14:37                               ` Mojca Miklavec
2008-04-17 15:31                                 ` John Devereux
2008-04-15 14:16                   ` Unable to generate luatex formats Hans van der Meer
2008-04-15 14:29                     ` Mojca Miklavec
2008-04-15 14:31                       ` Mojca Miklavec
2008-04-15 15:00                     ` Hans Hagen
2008-04-15 10:40         ` Hans van der Meer
2008-04-15  9:43   ` Mojca Miklavec
2008-04-16 10:21   ` John Devereux
2008-04-16 18:53 ` Joel C. Salomon
2008-04-16 19:01   ` Mojca Miklavec
2008-04-16 20:32   ` Hans Hagen
2008-04-17  4:55     ` Joel C. Salomon
2008-04-17  7:50       ` Taco Hoekwater
2008-04-17  8:03       ` Hans Hagen
2011-12-12  0:40 gnuplot module Mojca Miklavec
2011-12-12  0:49 ` Paul Menzel

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=871w55ppqp.fsf_-_@cordelia.devereux.me.uk \
    --to=jdremove@thisdevereux.me.uk \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).