guile-user
[Top][All Lists]
Advanced

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

Re: ANN: Guile-Charting 0.1.0 released


From: steve tell
Subject: Re: ANN: Guile-Charting 0.1.0 released
Date: Sun, 10 Jun 2007 22:40:57 -0400 (EDT)

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




reply via email to

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