From: Leo
Subject: matplotlib for lisp?
Date: 
Message-ID: <xbai63gbnux6.fsf@cam.ac.uk>
Hi there,

I am using SBCL 1.0.27 on OS X. I need some visualisation package for a
numerical model. What are the best options?

I searched the net extensively and it seems nothing is anywhere close to
matplotlib for python.

Thanks.
-- 
.:  Leo  :.  [ sdl.web AT gmail.com ]  .: I use Emacs :.

               www.git-scm.com
    git - the one true version control system

From: Mirko
Subject: Re: matplotlib for lisp?
Date: 
Message-ID: <bb954592-1c54-4708-aacc-a5954270104b@q14g2000vbn.googlegroups.com>
On May 8, 5:31 pm, Leo <·······@gmail.com> wrote:
> Hi there,
>
> I am using SBCL 1.0.27 on OS X. I need some visualisation package for a
> numerical model. What are the best options?
>
> I searched the net extensively and it seems nothing is anywhere close to
> matplotlib for python.
>
> Thanks.
> --
> .:  Leo  :.  [ sdl.web AT gmail.com ]  .: I use Emacs :.
>
>                www.git-scm.com
>     git - the one true version control system

nlisp supports gnuplot on sbcl (and I believe one of the developers
uses it on OS X).
The catch is that nlisp's plot commands accept only nlisp's data
structures (objects that store the data).  But that layer is not
overly complex.

If you do decide to try it, download the development version, and join
the mailing list.  Questions are answered fairly promptly.

Mirko
From: Leo
Subject: Re: matplotlib for lisp?
Date: 
Message-ID: <xbaiws8qmwof.fsf@cam.ac.uk>
On 2009-05-09 02:07 +0100, Mirko wrote:
> nlisp supports gnuplot on sbcl (and I believe one of the developers
> uses it on OS X).
> The catch is that nlisp's plot commands accept only nlisp's data
> structures (objects that store the data).  But that layer is not
> overly complex.

Thank you.

-- 
.:  Leo  :.  [ sdl.web AT gmail.com ]  .: I use Emacs :.

               www.git-scm.com
    git - the one true version control system
From: John Thingstad
Subject: Re: matplotlib for lisp?
Date: 
Message-ID: <op.utmtr3kfut4oq5@pandora>
På Fri, 08 May 2009 23:31:33 +0200, skrev Leo <·······@gmail.com>:

> Hi there,
>
> I am using SBCL 1.0.27 on OS X. I need some visualisation package for a
> numerical model. What are the best options?
>
> I searched the net extensively and it seems nothing is anywhere close to
> matplotlib for python.
>
> Thanks.

Can't you just pipe it to GNU Plot?

---------------------
John Thingstad
From: John Thingstad
Subject: Re: matplotlib for lisp?
Date: 
Message-ID: <op.utnq1sobut4oq5@pandora>
På Sat, 09 May 2009 00:22:41 +0200, skrev John Thingstad  
<·······@online.no>:

> På Fri, 08 May 2009 23:31:33 +0200, skrev Leo <·······@gmail.com>:
>
>> Hi there,
>>
>> I am using SBCL 1.0.27 on OS X. I need some visualisation package for a
>> numerical model. What are the best options?
>>
>> I searched the net extensively and it seems nothing is anywhere close to
>> matplotlib for python.
>>
>> Thanks.
>
> Can't you just pipe it to GNU Plot?
>
> ---------------------
> John Thingstad

There are in fact 6 Common Lisp interfaces to gnuplot. (ggogled "gnuplot  
commonlisp"")
http://www.cliki.net/Common%20Lisp%20and%20gnuplot

---------------------
John Thingstad
From: GP lisper
Subject: Re: matplotlib for lisp?
Date: 
Message-ID: <slrnh0bu4s.hh7.spambait@phoenix.clouddancer.com>
On Sat, 09 May 2009 12:21:18 +0200, <·······@online.no> wrote:
>
> There are in fact 6 Common Lisp interfaces to gnuplot. (ggogled "gnuplot  
> commonlisp"")
> http://www.cliki.net/Common%20Lisp%20and%20gnuplot
>
> ---------------------
> John Thingstad

Including the source code I posted here about 2 weeks ago.
The OP never goggled anything, another add to the troll list.

-- 
"Humans are allergic to change. "We've always done it that way" is not
a good reason to continue to do so. That's why I have a clock on my
office wall that runs backwards.  It forces visitors to think.
They hate me for that."  - Admiral Hopper.
From: AJ Rossini
Subject: Re: matplotlib for lisp?
Date: 
Message-ID: <5461e80d-2ef0-477d-8559-e04c4a0dca58@s16g2000vbp.googlegroups.com>
On May 9, 11:41 pm, GP lisper <········@CloudDancer.com> wrote:
> On Sat, 09 May 2009 12:21:18 +0200, <·······@online.no> wrote:
>
> > There are in fact 6 Common Lisp interfaces to gnuplot. (ggogled "gnuplot  
> > commonlisp"")
> >http://www.cliki.net/Common%20Lisp%20and%20gnuplot
>
> > ---------------------
> > John Thingstad
>
> Including the source code I posted here about 2 weeks ago.
> The OP never goggled anything, another add to the troll list.

Unfortunately, if you really want to do similar things as the OP
described, you'll need a better framework than GNUplot, which is
fairly primitive and can't be easily extended, from a design
perspective.  One can hack through it, but it's still not the same.

Now a robust set of full blown hacks plus a decently flexible UI might
be another thing, but I've not seen that yet, and I've been looking
for that for a while now (trying to put together a set of packages
with similar functionality with R/MATLAB without losing the wonderful
lisp-y sense of Common Lisp).

There are "gold standards", and there are hacks.
From: Leo
Subject: Re: matplotlib for lisp?
Date: 
Message-ID: <xbaiskjdmsx7.fsf@cam.ac.uk>
On 2009-05-09 22:41 +0100, GP lisper wrote:
> On Sat, 09 May 2009 12:21:18 +0200, <·······@online.no> wrote:
>>
>> There are in fact 6 Common Lisp interfaces to gnuplot. (ggogled "gnuplot  
>> commonlisp"")
>> http://www.cliki.net/Common%20Lisp%20and%20gnuplot
>>
>> ---------------------
>> John Thingstad
>
> Including the source code I posted here about 2 weeks ago.
> The OP never goggled anything, another add to the troll list.

Please be sensible. How do you know that I've never googled!

I am not just looking for a plotting package. Otherwise I'd just state
that. I put matplotlib in the title, so that people who are willing to
help can have a concrete idea the quality of package I'm looking for.

-- 
.:  Leo  :.  [ sdl.web AT gmail.com ]  .: I use Emacs :.

               www.git-scm.com
    git - the one true version control system
From: AJ Rossini
Subject: Re: matplotlib for lisp?
Date: 
Message-ID: <4c9f539f-c2a7-4e36-99d8-76f6f888ebcd@o30g2000vbc.googlegroups.com>
On May 8, 11:31 pm, Leo <·······@gmail.com> wrote:
> Hi there,
>
> I am using SBCL 1.0.27 on OS X. I need some visualisation package for a
> numerical model. What are the best options?
>
> I searched the net extensively and it seems nothing is anywhere close to
> matplotlib for python.

There are a few options.   One, use RCLG or RCL to plot using R
straight out of SBCL.

Another possibility is CL-PLPLOT, but I'm having problems with it core-
dumping (well, the FFI gets confused, I need to look at debugging so I
can send a bug report to the authors or personally fix it).  The basic
problem is that I can generate one plot (and there is almost enough
functionality to do a good deal of what  matplotlib can do) before the
FFI gets weird and we must restart the lisp.   This on SBCL, Debian
unstable (and on an eeepc 701).  You would need to install the PLPLOT
libraries.  But this allows (before it craps out) generation of
results in nearly any format needed.  So if it worked for generating a
few plots, it would be a great system, but I (or someone else) will
need to figure out the memory leak/reference error confusion.

I need more hours in the day!
From: Leo
Subject: Re: matplotlib for lisp?
Date: 
Message-ID: <xbai1vqyob9k.fsf@cam.ac.uk>
On 2009-05-09 10:35 +0100, AJ Rossini wrote:
> On May 8, 11:31�pm, Leo <·······@gmail.com> wrote:
>> Hi there,
>>
>> I am using SBCL 1.0.27 on OS X. I need some visualisation package for a
>> numerical model. What are the best options?
>>
>> I searched the net extensively and it seems nothing is anywhere close to
>> matplotlib for python.
>
> There are a few options.   One, use RCLG or RCL to plot using R
> straight out of SBCL.

RCLG and RCL are nice though I have yet to install R on my system.

> Another possibility is CL-PLPLOT, but I'm having problems with it core-
> dumping (well, the FFI gets confused, I need to look at debugging so I
> can send a bug report to the authors or personally fix it).  The basic
> problem is that I can generate one plot (and there is almost enough
> functionality to do a good deal of what  matplotlib can do) before the
> FFI gets weird and we must restart the lisp.   This on SBCL, Debian
> unstable (and on an eeepc 701).  You would need to install the PLPLOT
> libraries.  But this allows (before it craps out) generation of
> results in nearly any format needed.  So if it worked for generating a
> few plots, it would be a great system, but I (or someone else) will
> need to figure out the memory leak/reference error confusion.

PLPLOT looks great and it is actively being developed. So I am
interested if you get a working Common Lisp-plplot. Thank you.

> I need more hours in the day!

-- 
.:  Leo  :.  [ sdl.web AT gmail.com ]  .: I use Emacs :.

               www.git-scm.com
    git - the one true version control system
From: AJ Rossini
Subject: Re: matplotlib for lisp?
Date: 
Message-ID: <0047209e-ae09-44e2-af3a-5647128787ca@z7g2000vbh.googlegroups.com>
On May 9, 11:50 am, Leo <·······@gmail.com> wrote:

> PLPLOT looks great and it is actively being developed. So I am
> interested if you get a working Common Lisp-plplot. Thank you.
>

I think it might be worth just trying CL-PLPLOT -- the problems could
be due as much to my setup as to the code... (I found it reasonably
quick to see the error, i.e. minutes, not hours :-).
From: Tamas K Papp
Subject: Re: matplotlib for lisp?
Date: 
Message-ID: <77fspoF1hbg76U1@mid.individual.net>
On Fri, 08 May 2009 22:31:33 +0100, Leo wrote:

> Hi there,
> 
> I am using SBCL 1.0.27 on OS X. I need some visualisation package for a
> numerical model. What are the best options?
> 
> I searched the net extensively and it seems nothing is anywhere close to
> matplotlib for python.
> 
> Thanks.

Hi Leo,

I cleaned up the library I have been developing for a while, and made
it available under the LLGPL.  See 

http://tkpapp.blogspot.com/2009/05/announcing-cl-2d.html

for pretty pictures and the announcement.

Cl-cairo2 has had an OS X backend for a while, provided by Kei Suzuki,
if you want to visualize on the screen.  I have never used it, but I
think it should work.

Tamas
From: Leo
Subject: Re: matplotlib for lisp?
Date: 
Message-ID: <xbai7i0duixt.fsf@cam.ac.uk>
On 2009-05-19 15:07 +0100, Tamas K Papp wrote:
> On Fri, 08 May 2009 22:31:33 +0100, Leo wrote:
>> Hi there,
>> 
>> I am using SBCL 1.0.27 on OS X. I need some visualisation package for a
>> numerical model. What are the best options?
>> 
>> I searched the net extensively and it seems nothing is anywhere close to
>> matplotlib for python.
>> 
>> Thanks.
>
> Hi Leo,

Hi Tamas

> I cleaned up the library I have been developing for a while, and made
> it available under the LLGPL. See
>
> http://tkpapp.blogspot.com/2009/05/announcing-cl-2d.html
>
> for pretty pictures and the announcement.
>
> Cl-cairo2 has had an OS X backend for a while, provided by Kei Suzuki,
> if you want to visualize on the screen.  I have never used it, but I
> think it should work.

I look at your blog, the drawings look clean and beautiful. I haven't
gotten Cairo installed yet but I will definitely try it later on. Thank
you.

> Tamas

-- 
.:  Leo  :.  [ sdl.web AT gmail.com ]  .: I use Emacs :.

               www.git-scm.com
    git - the one true version control system