package prbnmcn-gnuplot
Build not checkedInstall
dune-project
Dependency
Authors
Maintainers
Sources
md5=bd2f94545702df51675a16748d72f055
sha512=f6d22acda89c5392b4bf9fae972a18bc19e4a7a4777b1a9eb6d4453ef195e7e01bd330806b348382a2da84c305a2e7fb68b4434c67a7fda3fa8a367b1244b76b
Description
Declarative generation of gnuplot scripts
Added to opam-repository:
README
prbnmcn-gnuplot
This library provides an relatively basic overlay over Gnuplot. It provides facilities for performing scatterplots, line plots and histograms.
Look no further for the documentation.
Note that some features exposed by the library do not work with Gnuplot versions below 5.4.
Here's a tiny example, plotting a sine function and displaying it on the Qt backend.
let discretize f =
Array.init 100 (fun i ->
let x = float_of_int i *. 0.1 in
Plot.r2 x (f x))
let sin =
let open Plot in
Line.line_2d
~points:(Data.of_array (discretize sin))
~style:
Style.(default |> set_color Color.red |> set_point ~ptyp:Pointtype.box)
~with_points:true
~legend:"sin"
()
let () =
let target = Plot.qt () in
Plot.(run
~target
~plot:(plot2 ~xaxis:"x" ~yaxis:"y" ~title:"sin" [sin])
exec)This produces something like this. 
An alternative to this library is ocaml-gnuplot.
Dev Dependencies (2)
-
odoc
with-doc -
conf-gnuplot
with-test
Optional Dependencies
None
Used by
None
Conflicts
None
Build status
Results of building prbnmcn-gnuplot with each compiler on check.ci.ocaml.org, run of against opam-repository 8d8d144. 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.
This version is not in the latest run; the versions below are.
| Version | OCaml 4.11 | OCaml 4.14 | OCaml 5.2 | OCaml 5.4 | OCaml 5.5 |
|---|---|---|---|---|---|
| 0.0.5 | n/a | good | good | good | good |
| 0.0.4 | 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