File: ex7.ml

package info (click to toggle)
ocaml-gnuplot 0.8.3-6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 508 kB
  • sloc: ml: 2,148; makefile: 185
file content (11 lines) | stat: -rw-r--r-- 344 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
(* 	$Id: ex7.ml,v 1.3 2004-11-22 19:54:26 chris_77 Exp $	 *)
(* Test the plotting of an empty data set but with a box. *)

module P = Gnuplot
open Parse_args

let () =
  let g = P.init ?offline:(offline 1) (device 1) in
  P.env g ~xgrid:true (-2.) 2. (-1.) 1.;
  try P.close g
  with Failure _ -> print_endline "*** Gnuplot had a problem! ***"