No description
  • OCaml 99.7%
  • Makefile 0.3%
Find a file
2015-11-30 22:01:14 +01:00
examples Minor renaming. 2015-07-17 22:30:04 +02:00
lib quick&*dirty*: remove date/time functionality; do not depend on core 2015-11-30 21:58:45 +01:00
.gitignore Initial commit 2014-05-03 18:00:15 +02:00
_oasis quick&*dirty*: remove date/time functionality; do not depend on core 2015-11-30 21:58:45 +01:00
_tags quick&*dirty*: remove date/time functionality; do not depend on core 2015-11-30 21:58:45 +01:00
API.odocl Initial commit 2014-05-03 18:00:15 +02:00
AUTHORS.txt Regenerate build files with OASIS v0.4.5 2015-03-15 19:41:01 +01:00
CHANGES.txt Prepare first release. 2015-07-18 20:45:22 +02:00
configure Initial commit 2014-05-03 18:00:15 +02:00
COPYING.txt Added license file 2014-05-04 08:14:08 +02:00
INSTALL.txt quick&*dirty*: remove date/time functionality; do not depend on core 2015-11-30 21:58:45 +01:00
Makefile Regenerate build files with OASIS v0.4.5 2015-03-15 19:41:01 +01:00
myocamlbuild.ml Regenerate build files with OASIS v0.4.5 2015-03-15 19:41:01 +01:00
opam opam file 2015-11-30 22:01:14 +01:00
README.md Prepare first release. 2015-07-18 20:45:22 +02:00
setup.ml quick&*dirty*: remove date/time functionality; do not depend on core 2015-11-30 21:58:45 +01:00

Gnuplot-OCaml - Simple interface to Gnuplot


Gnuplot-OCaml provides a simple interface to Gnuplot from OCaml. The API supports only 2D graphs and was inspired by FnuPlot.

Installation

From OPAM

$ opam install gnuplot

From Source

$ make
$ make install

Usage

Documentation

The API-documentation of this distribution can be built with make doc. It can also be found online.

Examples

This simple example

:::ocaml
open Gnuplot

let () =
  let gp = Gp.create () in
  Gp.plot_many gp ~range:(Range.XY (-10., 10., -1.5, 1.5))
   [ Series.lines_func  "sin(x)" ~title:"Plot a line" ~color:`Blue
   ; Series.points_func "cos(x)" ~title:"Plot points" ~color:`Green ];
  Gp.close gp

generates the following plot:

Simple Plot

For more examples please refer to the examples-directory of this distribution. You can build the examples by typing

$ ./configure --enable-examples
$ make

For instance,

$ ./gbm_paths.native

shows 10 simulated paths of geometric Brownian motion:

GBM Paths

Contact Information

In case of bugs, feature requests and similar, please contact: