From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Hans Aberg Newsgroups: gmane.lisp.guile.user Subject: Re: Plotting in Guile Date: Wed, 28 Jul 2010 18:04:22 +0200 Message-ID: <1DD44717-011B-4D6B-BC6E-2640D50B92F2@telia.com> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1280333319 25098 80.91.229.12 (28 Jul 2010 16:08:39 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 28 Jul 2010 16:08:39 +0000 (UTC) Cc: guile-user@gnu.org To: Joel James Adamson Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Wed Jul 28 18:08:38 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 1Oe9BH-0000p0-9a for guile-user@m.gmane.org; Wed, 28 Jul 2010 18:08:34 +0200 Original-Received: from localhost ([127.0.0.1]:42036 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Oe9BD-0001UV-RT for guile-user@m.gmane.org; Wed, 28 Jul 2010 12:08:28 -0400 Original-Received: from [140.186.70.92] (port=51450 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Oe97N-00071V-QS for guile-user@gnu.org; Wed, 28 Jul 2010 12:04:31 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Oe97M-0005gA-66 for guile-user@gnu.org; Wed, 28 Jul 2010 12:04:29 -0400 Original-Received: from smtp-out11.han.skanova.net ([195.67.226.200]:40934) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Oe97L-0005fc-UB for guile-user@gnu.org; Wed, 28 Jul 2010 12:04:28 -0400 Original-Received: from h131n2-fre-d2.ias.bredband.telia.com (78.72.157.131) by smtp-out11.han.skanova.net (8.5.114) (authenticated as u26619196) id 4BC6D1B30235F5DC; Wed, 28 Jul 2010 18:04:23 +0200 In-Reply-To: X-Mailer: Apple Mail (2.936) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. 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:8011 Archived-At: 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. > 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. You might also define a new type, which i Guile is called a SMOB (small object). Again, this is not difficult to do. Hans