From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Joel James Adamson Newsgroups: gmane.lisp.guile.user Subject: Re: Plotting in Guile Date: Wed, 28 Jul 2010 13:54:51 -0400 Message-ID: References: <1DD44717-011B-4D6B-BC6E-2640D50B92F2@telia.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-Trace: dough.gmane.org 1280339704 16679 80.91.229.12 (28 Jul 2010 17:55:04 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 28 Jul 2010 17:55:04 +0000 (UTC) Cc: guile-user@gnu.org To: Hans Aberg Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Wed Jul 28 19:55:03 2010 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OeAqK-0000Zv-3V for guile-user@m.gmane.org; Wed, 28 Jul 2010 19:55:00 +0200 Original-Received: from localhost ([127.0.0.1]:54992 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OeAqJ-0008K6-KF for guile-user@m.gmane.org; Wed, 28 Jul 2010 13:54:59 -0400 Original-Received: from [140.186.70.92] (port=33836 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OeAqF-0008Jz-2d for guile-user@gnu.org; Wed, 28 Jul 2010 13:54:56 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OeAqD-0002nb-Sw for guile-user@gnu.org; Wed, 28 Jul 2010 13:54:54 -0400 Original-Received: from chondestes.bio.unc.edu ([152.2.67.61]:55353) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OeAqD-0002nK-PO for guile-user@gnu.org; Wed, 28 Jul 2010 13:54:53 -0400 Original-Received: from chondestes.bio.unc.edu (chondestes.bio.unc.edu [127.0.0.1]) by chondestes.bio.unc.edu (8.14.4/8.14.3) with ESMTP id o6SHsqQX020569; Wed, 28 Jul 2010 13:54:52 -0400 Original-Received: (from joel@localhost) by chondestes.bio.unc.edu (8.14.4/8.14.4/Submit) id o6SHspIw020567; Wed, 28 Jul 2010 13:54:51 -0400 X-Authentication-Warning: chondestes.bio.unc.edu: joel set sender to adamsonj@email.unc.edu using -f In-Reply-To: <1DD44717-011B-4D6B-BC6E-2640D50B92F2@telia.com> (Hans Aberg's message of "Wed, 28 Jul 2010 18:04:22 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.user:8017 Archived-At: --=-=-= Content-Transfer-Encoding: quoted-printable Hans Aberg 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? Thanks, Joel =2D-=20 Joel J. Adamson Servedio Lab University of North Carolina at Chapel Hill FSF Member #8164 http://www.unc.edu/~adamsonj --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.14 (GNU/Linux) iF4EAREIAAYFAkxQbusACgkQp61eY7lvATKnVwD+OZUOJVZADubbBswJ5BAWl1Hp fDqCjGTZ5Ir0YO8NcJ4A/293rbs5DdO7jjYYRO3vTHw30IkUrGJa2dLfuxqPajhF =f+Rg -----END PGP SIGNATURE----- --=-=-=--