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 mail3-relais-sop.national.inria.fr (mail3-relais-sop.national.inria.fr [192.134.164.104]) by yquem.inria.fr (Postfix) with ESMTP id 0A758BC69 for ; Tue, 25 Sep 2007 18:57:01 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ah4FAGja+EbAXQInemdsb2JhbACBWF6LdgEBCQo X-IronPort-AV: E=Sophos;i="4.20,296,1186351200"; d="scan'208";a="3237422" Received: from concorde.inria.fr ([192.93.2.39]) by mail3-smtp-sop.national.inria.fr with ESMTP; 25 Sep 2007 18:56:58 +0200 Received: from mail4-relais-sop.national.inria.fr (mail4-relais-sop.national.inria.fr [192.134.164.105]) by concorde.inria.fr (8.13.6/8.13.6) with ESMTP id l8PGuliu016381 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=OK) for ; Tue, 25 Sep 2007 18:56:58 +0200 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AnoUAGja+EbVhW6V/2dsb2JhbACBWF4 X-IronPort-AV: E=Sophos;i="4.20,296,1186351200"; d="scan'208";a="16765515" Received: from server2.thinkcrime.de ([213.133.110.149]) by mail4-smtp-sop.national.inria.fr with ESMTP; 25 Sep 2007 18:56:54 +0200 Received: from hod-sarge-2005-10.lan.m-e-leypold.de (dslb-088-074-058-118.pools.arcor-ip.net [88.74.58.118]) (Authenticated sender: hod-sarge-2005-10@server2) by server2.thinkcrime.de (Postfix) with ESMTP id 0D61A1F4001 for ; Tue, 25 Sep 2007 18:56:52 +0200 (CEST) Received: by hod-sarge-2005-10.lan.m-e-leypold.de (Postfix, from userid 1003) id C784737C38; Tue, 25 Sep 2007 19:01:57 +0200 (CEST) To: caml-list@inria.fr Subject: Re: [Caml-list] Ocaml for Scientific computing References: <1190718078.5901.18.camel@mikhaa> <20070925161131.GB6202@laptop44.umd.edu> <200709251723.26450.jon@ffconsultancy.com> From: Markus E L Organization: N/A Date: Tue, 25 Sep 2007 19:01:57 +0200 In-Reply-To: <200709251723.26450.jon@ffconsultancy.com> (Jon Harrop's message of "Tue, 25 Sep 2007 17:23:26 +0100") Message-ID: <6ewsuellve.fsf@hod.lan.m-e-leypold.de> User-Agent: Some cool user agent (SCUG) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Miltered: at concorde with ID 46F93DCF.000 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; ocaml:01 markus:01 ocaml:01 bindings:01 graphing:01 gnuplot:01 markus:01 smoke:98 smoke:98 spares:98 wrote:01 wrote:01 unix:01 caml-list:01 data:02 Jon Harrop wrote: > On Tuesday 25 September 2007 17:11:31 Hezekiah M. Carty wrote: >> The biggest problem I've faced with OCaml has been missing >> libraries. The data I'm working with is (almost) all in HDF format, >> so I had to write my own library bindings for OCaml. The other is >> a library for plotting data... > > While this is a general purpose graphics library rather than a plotting > library, you may be interested in our hardware-accelerated vector graphics > library Smoke: > > http://www.ffconsultancy.com/products/smoke_vector_graphics/?ol > > Smoke makes it much easier to write visualization software. Nothing against Smoke, but on a Unix/Linux platform it might just be useful to use Ocaml to calculate the graphics data and pipe that to another process, e.g. one of the well known scientific visualization / graphing packages (starting with gnuplot, but there have been others too). For practical work (not advertising), that spares one to do all that tricky stuff like placing labels or ticks on the axis yourself. BTW: What I'd consider a boon for scientific visualization, actually, would be to output SVG to a file. Such an SVG file could be annotated with a usual graphics editor like inkscape for publication: Very valuable (if you don't need interactive visualization). Regards -- Markus