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=1.1 required=5.0 tests=AWL,SPF_NEUTRAL autolearn=disabled version=3.1.3 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 4AB1CBBC1 for ; Sun, 2 Mar 2008 12:46:08 +0100 (CET) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ao8CAEYiykdIDvyfb2dsb2JhbACQZAwBCgQFCAoVkTSHWw X-IronPort-AV: E=Sophos;i="4.25,434,1199660400"; d="scan'208";a="23259384" Received: from po-out-1718.google.com ([72.14.252.159]) by mail4-smtp-sop.national.inria.fr with ESMTP; 02 Mar 2008 12:46:07 +0100 Received: by po-out-1718.google.com with SMTP id y22so3898732pof.3 for ; Sun, 02 Mar 2008 03:46:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=+Xp93pfaYqljOYW/Ws9kZMXc/yfVJ1juGyzMQTDmdX4=; b=QRv+LfnBsQ0TJVvYNbv7rlXoFvOomM7d8UocDf4mJz/iVfWstwGKBmtBzZu57sVop+W2YTuQ6cy65aIV1VQZOEbexuKNrGn0pADpJyG+nTnxYbg2389jI9+SJGSQHHyA/QtQNdM1ZmVxL0qXD79OuLiJiYo0II4oYcU2LAfUa4U= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=ntOd6/PM2gZu0hIQN0G7vSvwOIqRFWNRdDn171dWgU7jcar1SLcbaoigNk0h5D9Z9FIziHWAg6uUWJAgQUEAyO9yXVJhDxheNze/ykkazO1TjIDGn5yI268TZ8HDsQJHOd/StHW1UEExFMqCcAwub9OlFMLTXtO+wNXbgKP/d+A= Received: by 10.140.136.1 with SMTP id j1mr7394926rvd.233.1204458366367; Sun, 02 Mar 2008 03:46:06 -0800 (PST) Received: by 10.140.134.3 with HTTP; Sun, 2 Mar 2008 03:46:06 -0800 (PST) Message-ID: <666572260803020346v3137bbd9t29900c2ca97c2dce@mail.gmail.com> Date: Sun, 2 Mar 2008 12:46:06 +0100 From: Adrien To: "Jon Harrop" Subject: Re : [Caml-list] Not Rocket Science Cc: caml-list@yquem.inria.fr In-Reply-To: <200803021041.55208.jon@ffconsultancy.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <200803021041.55208.jon@ffconsultancy.com> X-Spam: no; 0.00; gnuplot:01 gnuplot:01 bindings:01 printf:01 fprintf:01 ouput:01 camlimages:01 mli:01 ocaml:01 mli:01 sourceforge:01 caml-list:01 bin:01 modules:02 argument:02 There are working binding to gnuplot in fact : http://sourceforge.net/projects/ocaml-gnuplot/ And there is also plplot and another one which name I can't remember. As a side note, I recently used gnuplot but not with these bindings : a very easy way to create plots with gnuplot is to write the plot coordinates to a file (in human-readable format) and then run gnuplot with the file as argument. That's as easy as : let log_c=open_out_bin "./results/pour_gnuplot.txt" in Printf.fprintf log_c "%d %f\n" !i !mistake (* this is an excerpt from an actual code *) Then it is possible to have gnuplot create a image with three commands I unfortunately can't remember properly (you just had to set the ouput file, format and last issue "replot"). Last you can also use CamlImages. As for the lack of documentation for modules, I had myself troubles until I got the .mli thing. Now, after only a few months of ocaml, mli files are usually all I need. This way, I had alsa, ao, mad or xml-light working (just to name a few). However it took me some time, probably because I simply wasn't aware of how much information they carried and did not read them. Maybe Alexander Mikhalev was in the same situation. --- Adrien Nader