[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Plotting in Guile

From: Joel James Adamson
Subject: Re: Plotting in Guile
Date: Wed, 28 Jul 2010 13:54:51 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux)

Hans Aberg <address@hidden> writes:

> On 28 Jul 2010, at 17:21, Joel James Adamson wrote:
>> I am using Guile to iterate equations and produce trajectories from
>> those iterations.  My current strategy is to redirect the stdout to a
>> file and then use GNUPLOT to plot the trajectories as parametric
>> plots.  However, I would like to contain everything within one
>> program,
>> to keep Makefiles simple and (ideally) only deal with one programming
>> language for the project.
> GNUPLOT seems to require pipes, if not using a file.

The question from the IPC newbie (myself): is there something wrong with
pipes?  I've read a basic tutorial and they seem to do what I would
need, but the author seemed to think they were worthless.  Educate me.

>> 2. My thoughts were that I could use the POSIX IPC modules available
>> in
>> Guile to run GNUPLOT and send commands through a pipe or other
>> appropriate interface.
> Guile has a command scm_pipe() (see manual). It is not difficult to
> link to C-code - that is a point of using Guile.

So would I write a C program to handle the IPC between guile and
GNUPLOT, and then control it with Scheme?


Joel J. Adamson
Servedio Lab
University of North Carolina at Chapel Hill

FSF Member #8164

Attachment: pgpbFLqGMfYv_.pgp
Description: PGP signature

reply via email to

[Prev in Thread] Current Thread [Next in Thread]