Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
2D graphing and charting
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Hezekiah M. Carty <hcarty@a...>
Subject: Re: [Caml-list] 2D graphing and charting
I forgot to reply to the list, and to mention PsiLab

On 11/7/07, Jon Harrop <> wrote:
> I've been using Mathematica to render the graphs on our site, like the ray
> tracer language comparison:
> What free OCaml software might I use to do the same thing?
> --
> Dr Jon D Harrop, Flying Frog Consultancy Ltd.

There is at least one partial plplot (
binding already in existence
(, and I'm working
on another one using camlidl rather than Swig.

I haven't put my code out yet because I'd like to finish up some of
the 3D plotting function wrappers first, but if you're interested in
having something sooner I could put out what I have currently.  There
is enough there to do 2D plots, and the naming follows the C-library
quite closely.

The already-mentioned gnuplot binding seems to work reasonably as
well, though I've only made very basic 2D plots with it.

PsiLab ( is older, and based on OCaml
3.01 or 3.02 I think.  But I've been able to get it to build on recent
Linux distributions.  It has a fairly high-level binding to the plplot
libraries which is quite easy to use.  I have dreams of some day
updating it to work with recent OCaml releases.  It might also be a
decent start for a Mathematica-like toplevel with inline plots and so
on if the toplevel customizations could be tied in to labltk or
lablgtk.  I don't know how possible this is though.