[Top][All Lists]

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

Re: Updated Guile Tutorial

From: Neil Jerram
Subject: Re: Updated Guile Tutorial
Date: Sun, 20 Sep 2009 17:42:59 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux)

Andy Wingo <address@hidden> writes:

>  4) If you're forking to run gnuplot, why not do so from Scheme?

Coincidentally, I recently wrote this:

(define (gnuplot file-name plot-command)
  (let ((pipe (open-output-pipe "gnuplot -"))) 
    (format pipe
set terminal png
set output '~a'
    (close-pipe pipe))
  (system (string-append "display " file-name)))

Example usage:

(gnuplot "table1.png"
  "plot 'table1.txt' using 1:6 with lines, 4*x/log(2*x), 4*x/log(x)")

Daniel, if you feel like including this in the tutorial as an
alternative to the C code, please do so.

> Anyway, IMO, FWIW, etc. If you don't reply, I'll probably just commit
> your tutorial more-or-less as-is to the repo :)

Although the tutorial is now on the web, I still haven't done anything
as regards committing it to Git.  That's not because I think we
shouldn't; it just that I haven't pondered how best to do it yet.


reply via email to

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