package gnuplot
Simple interface to Gnuplot
Install
Dune Dependency
bitbucket.org
Readme
Changelog
LGPL-2.1-or-later WITH OCaml-LGPL-linking-exception License
Edit opam file
Versions (6)
Authors
Maintainers
Sources
gnuplot-ocaml-0.5.3.tar.gz
sha256=054ce16a07a35f1850aa9876a53575f7e9ea7759507937878bcc6ac3c6685c7d
md5=4df924134f1472fa275c2da9cea05b0b
README.md.html
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
NOTE: For a persistent X11 terminal add set term x11 persist
to your .gnuplot
file in your home directory.
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:
For more examples please refer to the examples
-directory of this distribution. You can build the examples with jbuilder, e.g.
$ jbuilder gbm_paths.exe
Running
$ _build/default/gbm_paths.exe
displays 10 simulated paths of geometric Brownian motion:
Contact Information
In case of bugs, feature requests and similar, please contact:
Oliver Gu gu.oliver@yahoo.com
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>