From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from mail4-relais-sop.national.inria.fr (mail4-relais-sop.national.inria.fr [192.134.164.105]) by yquem.inria.fr (Postfix) with ESMTP id 76377BC6C for ; Thu, 8 Nov 2007 17:05:33 +0100 (CET) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AgAAAI3CMkfAXQInh2dsb2JhbACCOYxHAQEBCAop X-IronPort-AV: E=Sophos;i="4.21,389,1188770400"; d="scan'208";a="19078801" Received: from concorde.inria.fr ([192.93.2.39]) by mail4-smtp-sop.national.inria.fr with ESMTP; 08 Nov 2007 17:05:32 +0100 Received: from mail3-relais-sop.national.inria.fr (mail3-relais-sop.national.inria.fr [192.134.164.104]) by concorde.inria.fr (8.13.6/8.13.6) with ESMTP id lA8G5VE5022131 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=OK) for ; Thu, 8 Nov 2007 17:05:32 +0100 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AgAAAPPCMkdC+VyomGdsb2JhbACCOYxHAQEBAQcCCCc X-IronPort-AV: E=Sophos;i="4.21,389,1188770400"; d="scan'208";a="5591947" Received: from ug-out-1314.google.com ([66.249.92.168]) by mail3-smtp-sop.national.inria.fr with ESMTP; 08 Nov 2007 17:05:18 +0100 Received: by ug-out-1314.google.com with SMTP id m3so356086ugc for ; Thu, 08 Nov 2007 08:05:16 -0800 (PST) Received: by 10.67.25.14 with SMTP id c14mr2961ugj.1194537911694; Thu, 08 Nov 2007 08:05:11 -0800 (PST) Received: by 10.67.98.10 with HTTP; Thu, 8 Nov 2007 08:05:11 -0800 (PST) Message-ID: <3a360f590711080805i45f1302akce74cf0002fb4eb1@mail.gmail.com> Date: Thu, 8 Nov 2007 11:05:11 -0500 From: "Hezekiah M. Carty" Sender: hcarty@mulethief.com To: caml-list@inria.fr Subject: Re: [Caml-list] 2D graphing and charting In-Reply-To: <200711080353.38303.jon@ffconsultancy.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <200711080353.38303.jon@ffconsultancy.com> X-Google-Sender-Auth: 184f2b4ae1803fa9 X-Miltered: at concorde with ID 473333CB.000 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; graphing:01 psilab:01 ocaml:01 camlidl:01 swig:01 wrappers:01 c-library:01 gnuplot:01 psilab:01 ocaml:01 high-level:01 toplevel:01 toplevel:01 labltk:01 lablgtk:01 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: > > http://www.ffconsultancy.com/languages/ray_tracer/results.html > > What free OCaml software might I use to do the same thing? > > -- > Dr Jon D Harrop, Flying Frog Consultancy Ltd. > http://www.ffconsultancy.com/products/?e There is at least one partial plplot (http://plplot.sourceforge.net/) binding already in existence (http://vityok.org.ua/cgi-bin/odd.cgi/Ocaml-plplot), 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 (http://psilab.sourceforge.net/) 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. Hez