package gnuplot
All checked builds passInstall
dune-project
Dependency
Authors
Maintainers
Sources
md5=f2fe68341173273bb9dc43b9d09f5b56
sha512=38f2076f2d9365b8a7206981d4a08d21c2dded9dbec4357ad87349c0d74779fce35de885770e01d237bd9ca407287b0d321b3325968e93cb571ad714036939fa
Description
Added to opam-repository:
README
Gnuplot-OCaml - Simple interface to Gnuplot 
Ocaml-Gnuplot provides a simple interface to Gnuplot from OCaml. The API supports only 2D graphs and was inspired by FnuPlot.
This is the continuation of https://bitbucket.org/ogu/gnuplot-ocaml/ . Changes mainly include API changes that are friendlier with module Gp = Gnuplot (as opposed to open Gnuplot), moving to dune for the build, and removing Core as a dependency.
Installation
From OPAM
$ opam install gnuplotFrom Source
$ make
$ make installNOTE: 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
module Gp = Gnuplot
let () =
let gp = Gp.create () in
Gp.plot_many gp ~range:(Gp.Range.XY (-10., 10., -1.5, 1.5))
[ Gp.Series.lines_func "sin(x)" ~title:"Plot a line" ~color:`Blue
; Gp.Series.points_func "cos(x)" ~title:"Plot points" ~color:`Green ];
Gp.close gpgenerates the following plot:

For more examples please refer to the examples-directory of this distribution. You can build the examples with dune, e.g.
$ dune build examples/gbm_paths.exeRunning
$ dune exec examples/gbm_paths.exedisplays 10 simulated paths of geometric Brownian motion:
Dependencies (5)
-
ocaml
>= "4.03" -
dune
>= "1.0" - conf-gnuplot
- ISO8601
- base-unix
Dev Dependencies (1)
-
odoc
with-doc
Optional Dependencies
None
Used by
None
Conflicts
None
Build status
Results of building gnuplot with each compiler on check.ci.ocaml.org, run of against opam-repository 8a77e58. All results for this package.
Each result links to its build log. To keep crawlers from overloading the site, build logs require a GitHub sign-in (see ocurrent/opam-health-check). On your first log, GitHub asks you to “Authorize opam-health-check”, the OCurrent app that runs these checks; it sees only your public profile, not your repositories. The sign-in lasts 30 days.
| Version | OCaml 4.11 | OCaml 4.14 | OCaml 5.2 | OCaml 5.4 | OCaml 5.5 |
|---|---|---|---|---|---|
| 0.7 (this version) | good | good | good | good | good |
- good Package successfully built
- partial One of the dependencies failed to build
- bad Package failed to build
- n/a Package is not available in this environment
- internal Internal failure