https://github.com/mseri/ocaml-gr
[wip]…Low level bindigs to the GR plotting framework (gr-framework.org)
https://github.com/mseri/ocaml-gr
gr-framework hacktoberfest plotting plotting-framework
Last synced: 11 months ago
JSON representation
[wip]…Low level bindigs to the GR plotting framework (gr-framework.org)
- Host: GitHub
- URL: https://github.com/mseri/ocaml-gr
- Owner: mseri
- License: mit
- Created: 2019-09-09T14:09:38.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2021-08-03T08:46:54.000Z (over 4 years ago)
- Last Synced: 2025-03-24T07:49:56.798Z (11 months ago)
- Topics: gr-framework, hacktoberfest, plotting, plotting-framework
- Language: OCaml
- Homepage: http://www.mseri.me/ocaml-gr/gr/index.html
- Size: 303 KB
- Stars: 14
- Watchers: 3
- Forks: 2
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGES.md
- License: LICENSE
Awesome Lists containing this project
README
# Lowlevel bindigs to the [GR](http://gr-framework.org) plotting framework
Based on version [0.37.0](https://github.com/sciapp/gr/tree/v0.37.0/lib/gks), 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](http://www.mseri.me/ocaml-gr/gr/index.html).
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.