From: Roman Belavkin
Subject: sci data + functions display for Garnet / Lisp
Date: 
Message-ID: <ah2grg$d5h$1@oyez.ccc.nottingham.ac.uk>
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

From: Raymond Toy
Subject: Re: sci data + functions display for Garnet / Lisp
Date: 
Message-ID: <4n7kju4h30.fsf@rtp.ericsson.se>
>>>>> "Roman" == Roman Belavkin <····························@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
From: Thomas F. Burdick
Subject: Re: sci data + functions display for Garnet / Lisp
Date: 
Message-ID: <xcvlm8amdip.fsf@conquest.OCF.Berkeley.EDU>
"Roman Belavkin" <····························@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!       |                        
    /       /      `-----------------------'                        
   (   -.  |                               
   |     ) |                               
  (`-.  '--.)                              
   `. )----'                               
From: Nicolas Neuss
Subject: Re: sci data + functions display for Garnet / Lisp
Date: 
Message-ID: <87it3c5ctd.fsf@ortler.iwr.uni-heidelberg.de>
···@conquest.OCF.Berkeley.EDU (Thomas F. Burdick) writes:

> "Roman Belavkin" <····························@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.
From: Andreas Hinze
Subject: Re: sci data + functions display for Garnet / Lisp
Date: 
Message-ID: <3D37E7F5.99D21E51@smi.de>
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
From: Fred Gilham
Subject: Re: sci data + functions display for Garnet / Lisp
Date: 
Message-ID: <u7lm87u2jy.fsf@snapdragon.csl.sri.com>
> 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                                        ······@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
From: Nicolas Neuss
Subject: Re: sci data + functions display for Garnet / Lisp
Date: 
Message-ID: <87d6tf6g9c.fsf@ortler.iwr.uni-heidelberg.de>
Andreas Hinze <···@smi.de> writes:

> 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

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.
From: Paolo Amoroso
Subject: Re: sci data + functions display for Garnet / Lisp
Date: 
Message-ID: <UlE5PQYQxnwmJy9p+NfwdFK6Rgm+@4ax.com>
On 19 Jul 2002 10:42:06 +0200, Nicolas Neuss
<·············@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
-- 
EncyCMUCLopedia * Extensive collection of CMU Common Lisp documentation
http://www.paoloamoroso.it/ency/README
From: Nicolas Neuss
Subject: Re: sci data + functions display for Garnet / Lisp
Date: 
Message-ID: <8765z66a2l.fsf@ortler.iwr.uni-heidelberg.de>
Paolo Amoroso <·······@mclink.it> writes:

> On 19 Jul 2002 10:42:06 +0200, Nicolas Neuss
> <·············@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.
From: John Wiseman
Subject: Re: sci data + functions display for Garnet / Lisp
Date: 
Message-ID: <m2n0sp61xs.fsf@server.local.lemon>
"Roman Belavkin" <····························@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
From: Paolo Amoroso
Subject: Re: sci data + functions display for Garnet / Lisp
Date: 
Message-ID: <RoY1PQjL7wK8u8bVTGfV0eqJJC7e@4ax.com>
On Wed, 17 Jul 2002 02:20:49 +0100, "Roman Belavkin"
<····························@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