Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
From: Vu Ngoc San <san.vu-ngoc@univ-rennes1.fr>
To: caml-list@yquem.inria.fr
Subject: Re: [Caml-list] 2D graphing and charting
Date: Sat, 10 Nov 2007 14:22:35 +0100	[thread overview]
Message-ID: <200711101422.35960.san.vu-ngoc@univ-rennes1.fr> (raw)
In-Reply-To: <200711080353.38303.jon@ffconsultancy.com>

Le Thursday 08 November 2007 04:53:37 Jon Harrop, vous avez écrit :
> 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?

I'd love to say: just write the following code, which produces the file
http://perso.univ-rennes1.fr/san.vu-ngoc/images/oplot.eps

But I can't, since I don't have any time to release "oplot" seriously before 
at least 6 months. So, sorry for the spam, I just couldn't resist :)

San




open Oplot;;
open Oplotmain;;
open Renderinit;;

let dots () = let rec loop n l = if n = 0 then l else
  loop (n-1) ((Random.float 1., Random.float 1.)::l) in
  loop 50 [];;

let view = view 0. 0. 1. 1.;;

let a = axis 0. 0.;;

let dots_bla = List.rev_map (fun (x,y) -> (x,y,"blabla")) (dots ());;
let dots_foo = List.rev_map (fun (x,y) -> (x,y,"foofoo")) (dots ());;

let d1 = label_dot_plot ~dot:diamond ~view dots_bla;;
let d2 = label_dot_plot ~dot:diamond ~view dots_foo;;

display ([Color black;view;a;Color red] & d1 & [Color blue] & d2) ~dev:gv;;


      parent reply	other threads:[~2007-11-10 13:22 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-11-08  3:53 Jon Harrop
2007-11-08  4:15 ` [Caml-list] " Till Varoquaux
2007-11-08 16:05 ` Hezekiah M. Carty
2007-11-09  1:44 ` Peng Zang
2007-11-09  6:36   ` Paul Pelzl
2007-11-10 13:22 ` Vu Ngoc San [this message]

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=200711101422.35960.san.vu-ngoc@univ-rennes1.fr \
    --to=san.vu-ngoc@univ-rennes1.fr \
    --cc=caml-list@yquem.inria.fr \
    /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