From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: steve tell Newsgroups: gmane.lisp.guile.user Subject: Re: ANN: Guile-Charting 0.1.0 released Date: Sun, 10 Jun 2007 22:40:57 -0400 (EDT) Message-ID: References: <1181319366.4168.6.camel@localhost.localdomain> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Trace: sea.gmane.org 1181570137 25681 80.91.229.12 (11 Jun 2007 13:55:37 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 11 Jun 2007 13:55:37 +0000 (UTC) Cc: guile-user To: Andy Wingo Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Mon Jun 11 15:55:36 2007 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.50) id 1HxkMo-0002DP-1k for guile-user@m.gmane.org; Mon, 11 Jun 2007 15:55:34 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HxkMn-00033o-Gx for guile-user@m.gmane.org; Mon, 11 Jun 2007 09:55:33 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HxZq5-0005Mh-4S for guile-user@gnu.org; Sun, 10 Jun 2007 22:41:05 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HxZq3-0005KX-HS for guile-user@gnu.org; Sun, 10 Jun 2007 22:41:04 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HxZq3-0005KC-AM for guile-user@gnu.org; Sun, 10 Jun 2007 22:41:03 -0400 Original-Received: from gateway.telltronics.org ([66.93.240.80] helo=ariel.telltronics.org) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HxZq2-0006h6-Ib for guile-user@gnu.org; Sun, 10 Jun 2007 22:41:03 -0400 Original-Received: from ariel.telltronics.org (ariel.telltronics.org [127.0.0.1]) by ariel.telltronics.org (8.13.4/8.13.4) with ESMTP id l5B2exBn011206; Sun, 10 Jun 2007 22:40:59 -0400 Original-Received: from localhost (tell@localhost) by ariel.telltronics.org (8.13.4/8.13.4/Submit) with ESMTP id l5B2ew2X011203; Sun, 10 Jun 2007 22:40:58 -0400 X-Authentication-Warning: ariel.telltronics.org: tell owned process doing -bs In-Reply-To: <1181319366.4168.6.camel@localhost.localdomain> X-detected-kernel: Linux 2.6, seldom 2.4 (older, 4) X-Mailman-Approved-At: Mon, 11 Jun 2007 09:55:28 -0400 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:5983 Archived-At: On Fri, 8 Jun 2007, Andy Wingo wrote: > ... using Guile-Cairo, and a day and a half later here we are! > > (make-bar-chart "Average Height at Iihenda JSS" > '(("Grade 9" (150 "Boys") (140 "Girls")) > ("Grade 10" (153 "Boys") (147 "Girls"))) > :write-to-png "/tmp/graph.png") I was looking for a guile-cairo example, so I gave gave this a try, by adding a "(use-modules (charting))" to those four lines, and running from the guile-charting-0.1.0 build directory with "env guile -s ../examples/height.scm". It fails with ERROR: Unbound variable: :write-to-png Changing only ":write-to-png" to "#:write-to-png" changes the session to: $ cat ../examples/height.scm (use-modules (charting)) (make-bar-chart "Average Height at Iihenda JSS" '(("Grade 9" (150 "Boys") (140 "Girls")) ("Grade 10" (153 "Boys") (147 "Girls"))) #:write-to-png "/tmp/graph.png") $ env guile -s ../examples/height.scm ERROR: Unbound variable: :y-axis-ticks $ This looks like a problem of the #: vs. : style of keyword-arguments, but adding "(read-set! keywords 'prefix)" to the example doesn't fix things, but simply changes the error to ERROR: Unbound variable: #{:y-axis-ticks}# All this using guile-cairo-1.3.91, cario-1.2.6, and fedora core's guile-1.8.0-8.20060831cvs Steve _______________________________________________ Guile-user mailing list Guile-user@gnu.org http://lists.gnu.org/mailman/listinfo/guile-user