Advertisement
Guest User

Untitled

a guest
Nov 30th, 2011
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. (*
  2. #use "topfind";;
  3. #require "str";;
  4. #require "unix";;
  5. #require "findlib";;
  6. #require "archimedes";;
  7. --OR--
  8. ocamlfind ocamlc -package archimedes -linkpkg benchplot.ml
  9. *)
  10.  
  11. module A = Archimedes;;
  12.  
  13. let plot () =
  14. let vp = A.init ~w:300. ~h:400. ~dirs:["/home/dan/.odb/lib/archimedes";"/home/dan/.odb/lib/cairo2"] ["Cairo"; "PNG"; "output.png"] in
  15. A.Axes.box vp;
  16. A.Array.y vp ~style:(`Bars 1.) [|20.; 23.; 18.; 21.|];
  17. A.close vp
  18. ;;
  19. plot();;
  20.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement