gr

OCaml bindings to the GR plotting library
README

Based on version 0.37.0, the one installed by hombrew on osx (brew install libgr) at the time of creating the bindings.

To install, first install libGR and set the GRDIR env variable, then run opam install gr.

The documentation is published here: online documentation.

Currently libGr is only looked via GRDIR or through the default library paths of your system.
You can customise this by unsetting GRDIR and specifying the path to libGR.so (or libGR.dylib) with the environment variable LIBGRPATH.

The tests are only compiling the examples.
You can run them as follows:

$ GRDIR=~/gr dune exec examples/example_simple.exe
$ GRDIR=~/gr dune exec examples/example_complex.exe
$ GRDIR=~/gr dune exec examples/example_lowlevel.exe
$ GRDIR=~/gr dune exec examples/example_dynamic.exe

Make sure that GRDIR or LIBGRPATH are pointing to the right path.

Disclaimer

Very incomplete: I don't know how to deal with the ``meta thingy'' in ctypes, and I have yet to bind the GKS library.

At some point I would like to add a high level interface, but I cannot predict when I will be able to put in thee time.

Contributions are welcome.

Install
Published
04 Aug 2021
Maintainers
Sources
gr-0.0.2.tbz
sha256=0be3daf1c5dc15db75257018d7e963fdd30d5227a12c8386ab4e4cbc2fc906c1
sha512=fa8965b84becabed37ef773ab976dfa3d69a0bdfd218ac13709b9af5265cb689972f1ac0d2daf8eaafefc54b617aac792e48bd4f9eea8482b12484c79aa80b37
Dependencies
ctypes
>= "0.15"
dune
>= "1.11"
ocaml
>= "4.10"
Reverse Dependencies