From: Marco Antoniotti
Subject: Need help with drawing 2d functions plots.
Date: 
Message-ID: <y6cy9fg3h9h.fsf@octagon.mrl.nyu.edu>
Hi

I need a library that will allow me to draw function plots (2D for the time
being) in a (Window) window.  I need to be able to tweak the output.

Is there any such beast out there?  LW and ACL dependent libraries are
fine.

In alternative I could use some code capable to call up Excel from the
CL implementation and use its graphing capabilities.

Cheers

PS. I need the library for a an important demo.

-- 
Marco Antoniotti ========================================================
NYU Courant Bioinformatics Group        tel. +1 - 212 - 998 3488
719 Broadway 12th Floor                 fax  +1 - 212 - 995 4122
New York, NY 10003, USA                 http://bioinformatics.cat.nyu.edu
                    "Hello New York! We'll do what we can!"
                           Bill Murray in `Ghostbusters'.

From: Reini Urban
Subject: Re: Need help with drawing 2d functions plots.
Date: 
Message-ID: <9fdb4c8c.0204230516.63ed8588@posting.google.com>
Marco Antoniotti <·······@cs.nyu.edu> wrote in message news:<···············@octagon.mrl.nyu.edu>...

> I need a library that will allow me to draw function plots (2D for the time
> being) in a (Window) window.  I need to be able to tweak the output.
> Is there any such beast out there?  LW and ACL dependent libraries are
> fine.
> In alternative I could use some code capable to call up Excel from the
> CL implementation and use its graphing capabilities.
> PS. I need the library for a an important demo.

I can only help with a stable autolisp library for excel.
but then you need autocad.
From: Marco Antoniotti
Subject: Re: Need help with drawing 2d functions plots.
Date: 
Message-ID: <y6cit6i5v7z.fsf@octagon.mrl.nyu.edu>
······@x-ray.at (Reini Urban) writes:

> Marco Antoniotti <·······@cs.nyu.edu> wrote in message news:<···············@octagon.mrl.nyu.edu>...
> 
> > I need a library that will allow me to draw function plots (2D for the time
> > being) in a (Window) window.  I need to be able to tweak the output.
> > Is there any such beast out there?  LW and ACL dependent libraries are
> > fine.
> > In alternative I could use some code capable to call up Excel from the
> > CL implementation and use its graphing capabilities.
> > PS. I need the library for a an important demo.
> 
> I can only help with a stable autolisp library for excel.
> but then you need autocad.

Thanks, but I am not working with AutoLisp.

Cheers

-- 
Marco Antoniotti ========================================================
NYU Courant Bioinformatics Group        tel. +1 - 212 - 998 3488
719 Broadway 12th Floor                 fax  +1 - 212 - 995 4122
New York, NY 10003, USA                 http://bioinformatics.cat.nyu.edu
                    "Hello New York! We'll do what we can!"
                           Bill Murray in `Ghostbusters'.
From: Jonathan Bailleul
Subject: Re: Need help with drawing 2d functions plots.
Date: 
Message-ID: <3CC55802.61A9C7@greyc.ismra.fr>
Marco Antoniotti wrote:
> 
> Hi
> 
> I need a library that will allow me to draw function plots (2D for the time
> being) in a (Window) window.  I need to be able to tweak the output.
> 
> Is there any such beast out there? 

We just had to cope with that kind of problems when programming a small
openGL subset (http://glos.sourceforge.net/english/). 
You can either use the opengl library functions to complete your task or
examine the xlib output code to make your own functions. 

> LW and ACL dependent libraries are
> fine.

You mean they're already providing that kind of functions? 
We could never rival with them in that case, especially if they directly
provide functionnalities suited for functions plotting, scale changes,
etc...
Actually, I can't imagine that such library is not already available...

> 
> In alternative I could use some code capable to call up Excel from the
> CL implementation and use its graphing capabilities.
> 
> Cheers
> 
> PS. I need the library for a an important demo.
>
> --
> Marco Antoniotti ========================================================
> NYU Courant Bioinformatics Group        tel. +1 - 212 - 998 3488
> 719 Broadway 12th Floor                 fax  +1 - 212 - 995 4122
> New York, NY 10003, USA                 http://bioinformatics.cat.nyu.edu
>                     "Hello New York! We'll do what we can!"
>                            Bill Murray in `Ghostbusters'.

-- 
--------------------------
Jonathan BAILLEUL
Doctorant au GREYC Image
ISMRA, Universit� de Caen
From: Jochen Schmidt
Subject: Re: Need help with drawing 2d functions plots.
Date: 
Message-ID: <aa3jm5$5n8$1@rznews2.rrze.uni-erlangen.de>
Marco Antoniotti wrote:

> 
> Hi
> 
> I need a library that will allow me to draw function plots (2D for the
> time
> being) in a (Window) window.  I need to be able to tweak the output.
> 
> Is there any such beast out there?  LW and ACL dependent libraries are
> fine.
> 
> In alternative I could use some code capable to call up Excel from the
> CL implementation and use its graphing capabilities.
> 
> Cheers
> 
> PS. I need the library for a an important demo.

Have you tried SciGraph?

http://www-2.cs.cmu.edu/afs/cs/project/ai-repository/ai/lang/lisp/gui/clim/general/scigraph/0.html

ciao,
Jochen

--
http://www.dataheaven.de
From: Marco Antoniotti
Subject: Re: Need help with drawing 2d functions plots.
Date: 
Message-ID: <y6cofga5v94.fsf@octagon.mrl.nyu.edu>
Jochen Schmidt <···@dataheaven.de> writes:

> Marco Antoniotti wrote:
> 
> > 
> > Hi
> > 
> > I need a library that will allow me to draw function plots (2D for the
> > time
> > being) in a (Window) window.  I need to be able to tweak the output.
> > 
> > Is there any such beast out there?  LW and ACL dependent libraries are
> > fine.
> > 
> > In alternative I could use some code capable to call up Excel from the
> > CL implementation and use its graphing capabilities.
> > 
> > Cheers
> > 
> > PS. I need the library for a an important demo.
> 
> Have you tried SciGraph?
> 
> http://www-2.cs.cmu.edu/afs/cs/project/ai-repository/ai/lang/lisp/gui/clim/general/scigraph/0.html

Thanks for the pointer.  I kind of wanted to avoid CLIM :)

Cheers

-- 
Marco Antoniotti ========================================================
NYU Courant Bioinformatics Group        tel. +1 - 212 - 998 3488
719 Broadway 12th Floor                 fax  +1 - 212 - 995 4122
New York, NY 10003, USA                 http://bioinformatics.cat.nyu.edu
                    "Hello New York! We'll do what we can!"
                           Bill Murray in `Ghostbusters'.
From: Fernando Rodr�guez
Subject: Re: Need help with drawing 2d functions plots.
Date: 
Message-ID: <fvpacuoi7jp4975n3615d6vo2t148e18ct@4ax.com>
On 21 Apr 2002 16:53:46 -0400, Marco Antoniotti <·······@cs.nyu.edu> wrote:


>I need a library that will allow me to draw function plots (2D for the time
>being) in a (Window) window.  I need to be able to tweak the output.

Maybe you can write a Lisp wrapper for this one:
http://www.linmpi.mpg.de/dislin/

I dont know if this product is available as a dll, but it might be worth
asking:
http://www.dpgraph.com





-----------------------
Fernando Rodriguez
From: synthespian
Subject: Re: Need help with drawing 2d functions plots.
Date: 
Message-ID: <pan.2002.04.29.09.55.54.907093.7837@uol.com.br>
On Sun, 21 Apr 2002 17:53:46 -0300, Marco Antoniotti wrote:


> Hi
> 
> I need a library that will allow me to draw function plots (2D for the
> time being) in a (Window) window.  I need to be able to tweak the
> output.
> 
> Is there any such beast out there?  LW and ACL dependent libraries are
> fine.
> 
> In alternative I could use some code capable to call up Excel from the
> CL implementation and use its graphing capabilities.
> 
> Cheers
> 
> PS. I need the library for a an important demo.
> 
> 
Hi Antoniotti-

	This is just so I don't feel guilty for not mentioning it, as you
probably have already looked into it. Have you tried:

	- maxima (xmaxima)
	- xlispstat
	?
	These are written in Lisp, they're not libraries, but full-fledged apps,
but maybe you can tweak the code for your needs. Dinamic graphics in both
of them.

	Regs
	henry
	···········@uol.com.br
_________________________________________________________
Micro$oft-Free Human         100% Debian GNU/Linux
     KMFMS              "Bring the genome to the people!"
From: Marco Antoniotti
Subject: Re: Need help with drawing 2d functions plots.
Date: 
Message-ID: <y6ck7qqplem.fsf@octagon.mrl.nyu.edu>
synthespian <···········@uol.com.br> writes:

> On Sun, 21 Apr 2002 17:53:46 -0300, Marco Antoniotti wrote:
> 
> 
> > Hi
> > 
> > I need a library that will allow me to draw function plots (2D for the
> > time being) in a (Window) window.  I need to be able to tweak the
> > output.
> > 
> > Is there any such beast out there?  LW and ACL dependent libraries are
> > fine.
> > 
> > In alternative I could use some code capable to call up Excel from the
> > CL implementation and use its graphing capabilities.
> > 
> > Cheers
> > 
> > PS. I need the library for a an important demo.
> > 
> > 
> Hi Antoniotti-
> 
> 	This is just so I don't feel guilty for not mentioning it, as you
> probably have already looked into it. Have you tried:
> 
> 	- maxima (xmaxima)

Maxima is IMHO a very important system which I plan to carefully look
into in the future.  However, AFAIK, it requires a lot of work to
break the GCL dependencies and to bring it up to ANSI compliance.

> 	- xlispstat

xlispstat does not fit the bill.  It ain't ANSI and, last I checked,
it does not compile.

So far, the best too I have see is 'scigraph', which comes with an old
BSD-style license from BBN.

Cheers

-- 
Marco Antoniotti ========================================================
NYU Courant Bioinformatics Group        tel. +1 - 212 - 998 3488
719 Broadway 12th Floor                 fax  +1 - 212 - 995 4122
New York, NY 10003, USA                 http://bioinformatics.cat.nyu.edu
                    "Hello New York! We'll do what we can!"
                           Bill Murray in `Ghostbusters'.
From: Raymond Toy
Subject: Re: Need help with drawing 2d functions plots.
Date: 
Message-ID: <4nwuuq8nut.fsf@rtp.ericsson.se>
>>>>> "Marco" == Marco Antoniotti <·······@cs.nyu.edu> writes:

    Marco> synthespian <···········@uol.com.br> writes:

    Marco> Maxima is IMHO a very important system which I plan to carefully look
    Marco> into in the future.  However, AFAIK, it requires a lot of work to
    Marco> break the GCL dependencies and to bring it up to ANSI compliance.

While probably a lot of work remains, maxima works just fine with
clisp and cmucl these days.

Ray
From: synthespian
Subject: Re: Need help with drawing 2d functions plots.
Date: 
Message-ID: <pan.2002.05.13.06.39.24.689811.994@uol.com.br>
On Mon, 29 Apr 2002 13:35:06 -0300, Raymond Toy wrote:

>>>>>> "Marco" == Marco Antoniotti <·······@cs.nyu.edu> writes:
> 
>     Marco> synthespian <···········@uol.com.br> writes:
> 
>     Marco> Maxima is IMHO a very important system which I plan to
>     carefully look Marco> into in the future.  However, AFAIK, it
>     requires a lot of work to Marco> break the GCL dependencies and to
>     bring it up to ANSI compliance.
> 
> While probably a lot of work remains, maxima works just fine with clisp
> and cmucl these days.
> 
> Ray

Hi-

	Good point.
	Antoniotti, you might want to check the maxima mailing list on the topic
of building maxima on cmulisp and clisp.
	Sorry for the (very) late reply.
	If you do anything interesting with maxima's internals and graphics,
keep us updated ok? You do a lot of cool stuff, from what I've seen.

	Cheers
	
	henry
	···········@uol.com.br
________________________________________________________
Micro$oft-Free Human         100% Debian GNU/Linux
     KMFMS              "Bring the genome to the people!"
From: Raymond Toy
Subject: Re: Need help with drawing 2d functions plots.
Date: 
Message-ID: <4nu1pc87mt.fsf@rtp.ericsson.se>
>>>>> "synthespian" == synthespian  <···········@uol.com.br> writes:

    synthespian> On Mon, 29 Apr 2002 13:35:06 -0300, Raymond Toy wrote:
    >>>>>>> "Marco" == Marco Antoniotti <·······@cs.nyu.edu> writes:
    >> 
    Marco> synthespian <···········@uol.com.br> writes:
    >> 
    Marco> Maxima is IMHO a very important system which I plan to
    >> carefully look Marco> into in the future.  However, AFAIK, it
    >> requires a lot of work to Marco> break the GCL dependencies and to
    >> bring it up to ANSI compliance.
    >> 
    >> While probably a lot of work remains, maxima works just fine with clisp
    >> and cmucl these days.
    >> 
    >> Ray

    synthespian> Hi-

    synthespian> 	Good point.
    synthespian> 	Antoniotti, you might want to check the maxima mailing list on the topic
    synthespian> of building maxima on cmulisp and clisp.

Actually, it's gotten worse.  The CVS versions of maxima won't compile
with gcl anymore.  Mostly because gcl is missing array-displacement,
which is odd since it has displaced arrays.

There are other problems which can be worked around, like no ANSI loop
(GCL has sloop), no destructuring-bind (simple version added to
maxima), no defpackage (latest gcl has one now, I think).

Ray
From: Michael A. Koerber
Subject: Re: Need help with drawing 2d functions plots.
Date: 
Message-ID: <3CDFB64C.885A2B42@ll.mit.edu>
1.  I frequently do this from within CMUCL by opening a process handle to GNUPLOT and sending the commands there for evaluations.  Gnuplot will allow entry and evaluation of functions as well as overlay of "tabular" data.  Thus you could
use LISP to generate the data to plot, store it off in a file (or send it via a process handle) for gnuplot.  Or you could write the function literally into gnuplot and deal with its evaluation there.

2.  For 2D plotting of a function via gnuplot something like this would work

;; set up the basic plot
(send-to-gnuplot
  (format nil "

# Define the functions required for plotting
r(x,y) = sqrt(x*x + y*y)
f(x,y) = exp(-0.1*r(x,y))*abs(cos(x))

# Set the titles and such
set title '~a'
set xlabel '~a'
set ylabel '~a'

# Set hidden line removal and plot 
set hidden
splot f(x,y) w lines

" title xlabel ylabel))

;; Now tweak it
(send-to-gnuplot "set xrange [0:15]; set title 'SILLY CURVE IN 2D'; set grid")

3.  There is a CLOCC gnuplot interface, but IMHO it doesn't provide enough flexibility...especially for these types of problems.  I wrote a more general interface, but it had design decissions based on operating under Linux/X11 only. 
Because of that and its very "alpha s/w" nature, I've never published it.

I hope this helps.

-- 
********************
Dr Michael A. Koerber
MIT/Lincoln Laboratory
···@ll.mit.edu