Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/armael/ocaml-gnuplot-light
https://github.com/armael/ocaml-gnuplot-light
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/armael/ocaml-gnuplot-light
- Owner: Armael
- License: other
- Created: 2015-11-30T20:58:23.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2015-11-30T21:01:20.000Z (about 9 years ago)
- Last Synced: 2023-03-12T09:34:07.919Z (almost 2 years ago)
- Language: OCaml
- Size: 96.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGES.txt
- License: COPYING.txt
Awesome Lists containing this project
README
Gnuplot-OCaml - Simple interface to Gnuplot
===========================================---------------------------------------------------------------------------
Gnuplot-OCaml provides a simple interface to [Gnuplot](http://www.gnuplot.info)
from [OCaml](http://www.ocaml.org). The API supports only 2D graphs and was
inspired by [FnuPlot](https://github.com/fsprojects/FnuPlot).Installation
------------From [OPAM](http://opam.ocaml.org)
$ opam install gnuplot
From Source
$ make
$ make installUsage
-----### Documentation
The API-documentation of this distribution can be built with `make doc`.
It can also be found [online](http://ogu.bitbucket.org/gnuplot-ocaml/api/).### Examples
This simple example
:::ocaml
open Gnuplotlet () =
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 gpgenerates the following plot:
![Simple Plot](http://ogu.bitbucket.org/simple_plot.png)
For more examples please refer to the `examples`-directory of this
distribution. You can build the examples by typing$ ./configure --enable-examples
$ makeFor instance,
$ ./gbm_paths.native
shows 10 simulated paths of geometric Brownian motion:
![GBM Paths](http://ogu.bitbucket.org/gbm_paths.png)
Contact Information
-------------------In case of bugs, feature requests and similar, please contact:
* Oliver Gu