package oplot
All checked builds passInstall
dune-project
Dependency
Authors
Maintainers
Sources
md5=53418bc8d98c25da99965f853a82dc01
sha512=ae85cd89f5ed36bce7a6c55732605ea909ad075c2376c2041d1f95ea423ca75d27ce18d28110068fc3243ea134e23f3ddab37fe671ef09a869722d0ee9581c3a
Description
High-quality plotting of 2D usual mathematical functions, including animations and LaTeX formulas. Supports also 3D surfaces with interactive rotating.
README
Oplot
Mathematical plotting library for ocaml
2D plot and LaTeX | 3D surface |
|---|---|
![]() | ![]() |
2D plots
- function
y = f(x) - parametric curves
- implicit curves
f(x,y) = 0 - can use mathematical functions from other libraries like
gsl - can use LaTeX to display text and formulas
- animations
- Matrix or grid display
- ...
- function
3D plots
- parametric surfaces
- 3D graphs
z = f(x,y) - interactive 3D rotation and zoom
- ...
Many renderers
- GPU graphics (opengl/sdl)
- Graphics package
- high quality vector graphics in EPS or PDF files
- xfig files
- image screenshots
Documentation
Examples and API documentation.
GUI
An official standalone GUI for oplot.0.72: goplot
Examples
The top directory contains examples that can be run from the ocaml toplevel. See the README file.
Install version >= 0.80
The current version does not require lablgl, but instead you should install tgls and gl-legacy:
opam install tgls
opam pin https://github.com/sanette/gl-legacy.git
opam pin https://github.com/sanette/oplot.gitInstall v 0.72
oplot<0.80requireslablgl. If you have any trouble with this, try this one.:
opam pin add https://github.com/sanette/lablgl-lib.git
opam install lablgl.1.07-lib
opam install oplot.0.72Requirements
- For PDF output you need to install the
fig2devsystem package. - For LaTeX display you need a working LaTeX installation; for instance install the
texlivesystem package. - For using the Gnu Scientific Library, install the
gslopam package:
opam install gsl- For rendering via the OCaml Graphics library (currently not recommended), you need to use the
oplot-graphicsopam package.
Extensions to other backends
It's easy to add another backend by using the GRAPHICS signature, see https://github.com/sanette/oplot-graphics
Dependencies (7)
Dev Dependencies (1)
-
odoc
with-doc
Used by
None
Conflicts
None
Build status
Results of building oplot with each compiler on check.ci.ocaml.org, run of against opam-repository 7cdc698. 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.85 (this version) | n/a | good | good | good | good |
| 0.71 | good | good | n/a | n/a | n/a |
- 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

