From: Adrien <camaradetux@gmail.com>
To: "Jon Harrop" <jon@ffconsultancy.com>
Cc: caml-list@yquem.inria.fr
Subject: Re : [Caml-list] Not Rocket Science
Date: Sun, 2 Mar 2008 12:46:06 +0100 [thread overview]
Message-ID: <666572260803020346v3137bbd9t29900c2ca97c2dce@mail.gmail.com> (raw)
In-Reply-To: <200803021041.55208.jon@ffconsultancy.com>
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
next prev parent reply other threads:[~2008-03-02 11:46 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-02 10:41 Jon Harrop
2008-03-02 11:46 ` Adrien [this message]
2008-03-02 12:54 ` documentation (Re: Re : [Caml-list] Not Rocket Science) Oliver Bandel
2008-03-03 9:03 ` Oliver Bandel
2008-03-02 14:55 ` [Caml-list] Not Rocket Science Jon Harrop
2008-03-02 13:14 ` Richard Jones
2008-03-02 23:21 ` Markus Mottl
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=666572260803020346v3137bbd9t29900c2ca97c2dce@mail.gmail.com \
--to=camaradetux@gmail.com \
--cc=caml-list@yquem.inria.fr \
--cc=jon@ffconsultancy.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox