Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

sci data + functions display for Garnet / Lisp

22 views
Skip to first unread message

Roman Belavkin

unread,
Jul 16, 2002, 9:20:49 PM7/16/02
to
Hi!

not sure if anyone is still using Garnet here. I have just put the library
I made for myself to display scientific data and functions (lines, scatter
plot, histograms, distibutions, areas, etc). There is no documentation
available yet, but there is an example in the source which should be
obvious. The advantage of using this lib is that Garnet provides a function
to export any window into a nice PostScript file. So, it means you can
generate all the graphs realtime from your programs and then export the
graph to .PS files directly from your software (no need to pipe to GNUPlot
etc).

The page for the library is here:

http://www.cs.nott.ac.uk/~rvb/lisp/plot-2d/

the picture is generated from the example in the source.

The library is just 45K (with the example).

Hope someone finds it useful. Comments are welcome

Regards!

r
o
m
a
n

Raymond Toy

unread,
Jul 17, 2002, 9:30:43 AM7/17/02
to
>>>>> "Roman" == Roman Belavkin <please_dont_se...@cs.nott.ac.uk> writes:

Roman> Hi!
Roman> not sure if anyone is still using Garnet here. I have just put the library
Roman> I made for myself to display scientific data and functions (lines, scatter
Roman> plot, histograms, distibutions, areas, etc). There is no documentation
Roman> available yet, but there is an example in the source which should be
Roman> obvious. The advantage of using this lib is that Garnet provides a function
Roman> to export any window into a nice PostScript file. So, it means you can
Roman> generate all the graphs realtime from your programs and then export the
Roman> graph to .PS files directly from your software (no need to pipe to GNUPlot
Roman> etc).

This is something I've always wanted because piping things to gnuplot
is sometimes problematic. The graphs look very nice!

Any interest in doing a 3D version? Then I don't have to call gnuplot
from lisp anymore. :-)

Ray

Thomas F. Burdick

unread,
Jul 17, 2002, 2:10:22 PM7/17/02
to
"Roman Belavkin" <please_dont_se...@cs.nott.ac.uk> writes:

> not sure if anyone is still using Garnet here. I have just put the library
> I made for myself to display scientific data and functions (lines, scatter
> plot, histograms, distibutions, areas, etc). There is no documentation
> available yet, but there is an example in the source which should be
> obvious. The advantage of using this lib is that Garnet provides a function
> to export any window into a nice PostScript file. So, it means you can
> generate all the graphs realtime from your programs and then export the
> graph to .PS files directly from your software (no need to pipe to GNUPlot
> etc).

Oooh, this looks nice, thank you for releasing it! A couple of comments:

1. You should announce it on the garnet users list, too
(garnet dash users at cs dot cmu dot edu)

2. You should put an explicit license on it (eg, http://www.x.org/terms.htm),
or if you intend it to be in the public domain, say so in the
source (like in the Garnet source files).

> Hope someone finds it useful.

I certainly will; in a month or so, I was going to need some way of
graphing data from a Garnet app. Guess I don't need to worry about
that anymore.

--
/|_ .-----------------------.
,' .\ / | No to Imperialist war |
,--' _,' | Wage class war! |
/ / `-----------------------'
( -. |
| ) |
(`-. '--.)
`. )----'

John Wiseman

unread,
Jul 18, 2002, 1:27:17 AM7/18/02
to
"Roman Belavkin" <please_dont_se...@cs.nott.ac.uk> writes:

> I have just put the library I made for myself to display scientific
> data and functions (lines, scatter plot, histograms, distibutions,
> areas, etc).

That looks slick.

(In case anyone is looking for something similar on the Mac, Nigel
Gilbert has a 2D/3D charting package at
<ftp://ftp.digitool.com/pub/mcl/contrib/Chart.sit.hqx>. I put the
manual at http://heavymeta.org/chart/Chart.html so you can see the
pretty pictures.)


John Wiseman

Paolo Amoroso

unread,
Jul 18, 2002, 3:45:41 AM7/18/02
to
On Wed, 17 Jul 2002 02:20:49 +0100, "Roman Belavkin"
<please_dont_se...@cs.nott.ac.uk> wrote:

> not sure if anyone is still using Garnet here. I have just put the library

A project for coordinating the maintenance and further development of
Garnet was recently set up at SourceForge:

http://garnetlisp.sourceforge.net


Paolo
--
EncyCMUCLopedia * Extensive collection of CMU Common Lisp documentation
http://www.paoloamoroso.it/ency/README

Nicolas Neuss

unread,
Jul 19, 2002, 4:42:06 AM7/19/02
to
t...@conquest.OCF.Berkeley.EDU (Thomas F. Burdick) writes:

> "Roman Belavkin" <please_dont_se...@cs.nott.ac.uk> writes:
>
> > not sure if anyone is still using Garnet here. I have just put the library
> > I made for myself to display scientific data and functions (lines, scatter
> > plot, histograms, distibutions, areas, etc). There is no documentation
> > available yet, but there is an example in the source which should be
> > obvious. The advantage of using this lib is that Garnet provides a function
> > to export any window into a nice PostScript file. So, it means you can
> > generate all the graphs realtime from your programs and then export the
> > graph to .PS files directly from your software (no need to pipe to GNUPlot
> > etc).

Motivated by your post, Roman, I have looked at Garnet, and it seems
quite nice. Thank you. [Somehow the CVS-version of Garnet from
sourceforge did not work for me (CMUCL 18d), so I fetched Fred
Gilham's version from ftp://ftp.csl.sri.com/pub/users/gilham/garnet]

> Oooh, this looks nice, thank you for releasing it! A couple of comments:
>
> 1. You should announce it on the garnet users list, too
> (garnet dash users at cs dot cmu dot edu)
>
> 2. You should put an explicit license on it (eg, http://www.x.org/terms.htm),
> or if you intend it to be in the public domain, say so in the
> source (like in the Garnet source files).

I second this. I would suggest some really liberal license, best
would be PD. I'm thinking of switching from Gnuplot to use Garnet
with your code (and you can be sure that I'll mention where it
originated), but I am careful with the licenses of the code that I
use.

Nicolas.

Andreas Hinze

unread,
Jul 19, 2002, 6:20:37 AM7/19/02
to
Nicolas Neuss wrote:
>
> Motivated by your post, Roman, I have looked at Garnet, and it seems
> quite nice. Thank you. [Somehow the CVS-version of Garnet from
> sourceforge did not work for me (CMUCL 18d), so I fetched Fred
> Gilham's version from ftp://ftp.csl.sri.com/pub/users/gilham/garnet]
>
Does Fred's version work with CMUCL 18D out-of-the-box or do you need
some magic ?

Sincerly
AHz

Fred Gilham

unread,
Jul 19, 2002, 12:04:33 PM7/19/02
to

> Does Fred's version work with CMUCL 18D out-of-the-box or do you need
> some magic ?

Worked for me, last time I tried it. :-)

--
Fred Gilham gil...@csl.sri.com
And then [Clinton] turned to Hunter Thompson, of all people, and said
with wholehearted fervor, "We're going to put one hundred thousand new
police officers on the street."
I was up all night persuading Hunter that this was not a personal
threat. -- P. J. O'Rourke

Paolo Amoroso

unread,
Jul 20, 2002, 1:46:08 PM7/20/02
to
On 19 Jul 2002 10:42:06 +0200, Nicolas Neuss
<Nicola...@iwr.uni-heidelberg.de> wrote:

> quite nice. Thank you. [Somehow the CVS-version of Garnet from
> sourceforge did not work for me (CMUCL 18d), so I fetched Fred
> Gilham's version from ftp://ftp.csl.sri.com/pub/users/gilham/garnet]

I suggest that you notify the maintainer, so that he can look into this and
fix problems in the source base with more active maintainance.

Nicolas Neuss

unread,
Jul 22, 2002, 9:31:27 AM7/22/02
to
Andreas Hinze <a...@smi.de> writes:

Details: I got doc.tar.gz, lib.tar.gz, src-2001-May-29.tar.gz from the
above web adress and extracted them in a Directory
/usr/local/src/garnet. Then I replaced two strings "*FILL-THIS-IN*"
in "garnet-loader.lisp" with the appropriate paths. Next, I loaded
garnet-prepare-compile.lisp, garnet-loader.lisp, and
garnet-compiler.lisp. Because the instructions seemed to require it,
I moved the shell script garnet-after-compile from garnet/src to
garnet before using it. Finally, I put the following in my init-File:

(load "library:subsystems/clx-library")
(load "/usr/local/src/garnet/src/garnet-loader.lisp")

Yours, Nicolas.

Nicolas Neuss

unread,
Jul 23, 2002, 5:57:22 AM7/23/02
to
Paolo Amoroso <amo...@mclink.it> writes:

> On 19 Jul 2002 10:42:06 +0200, Nicolas Neuss
> <Nicola...@iwr.uni-heidelberg.de> wrote:
>
> > quite nice. Thank you. [Somehow the CVS-version of Garnet from
> > sourceforge did not work for me (CMUCL 18d), so I fetched Fred
> > Gilham's version from ftp://ftp.csl.sri.com/pub/users/gilham/garnet]
>
> I suggest that you notify the maintainer, so that he can look into this and
> fix problems in the source base with more active maintainance.
>
>
> Paolo

OK. I'll rerun it and will report the first bug. But my impression
is that this CVS version has to be overworked (it has been put there
only in May this year), probably by combining it with Fred Gilhams
work. I think this should be the very first step that the maintainer
(Cliff Yapp) should do.

Nicolas.

0 new messages