GR is based on an implementation of a Graphical Kernel System (GKS) and OpenGL. As a self-contained system it can quickly and easily be integrated into existing applications. GR is characterized by its high interoperability and can be used with modern web technologies and mobile devices.
Published: 04 Aug 2021
Lowlevel bindigs to the GR plotting framework
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.
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.dylib) with the environment variable
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.
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.