This is OCamlplot, an interface that makes the
accessible to the OCaml language.
This project is hosted on sourceforge :
The libplot library
Libplot is a part of the GNU
plotutils package. It's "a powerful C/C++ function library for
exporting 2-D vector graphics in many file formats, both vector and
raster". The API is devide-independent and the library knows about
PostScript, PNG, SVG, X, etc.
From the sourceforge
I made a RPM for plotutils :
plotutils-2.4.1-7.src.rpm (3.2 Mo).
The interface sticks closely to libplot's API, so the main reference is the
libplot manual and the interface file
is the ocamldoc-generated documentation.
Plot module contains all the basic types and function
declarations corresponding to the C API of libplot. It contains mainly type
declarations and externals, and a wrapper for creating plotters.
In libplot, function names are of the form
pl_function_r. The ML
corresponding function name is
prefix is dropped because it's redundant with Caml module names. The
_r suffix is for reentrant to distinguish names from an older API
(not thread-safe). Since I did not write code for this older API, I just dropped
Many libplot functions expect string arguments. The corresponding arguments in
the ML code are usually variants or boolean, whichever makes sense (just check
All of the libplot plotters are supported (Xdrawables via LablGTK).
GNU LGPL. The file io.h is taken from the OCaml compiler source tree (the GPL'ed
part of the tree).
Some related projects :
A library to produce images in Caml. «It uses the PostScript graphical
model but in a much higher level language.»
A PostScript engine for OCaml.
« CamlImages is an image processing library. »
The Graphics library from the OCaml distribution.
« A Caml library that generates PostScript files from Caml graphics
An OCaml interface to the GD graphics library.
This a wrapper for the zlib and bzip2 libraries. It allows transparent reading and
writing of compressed files from OCaml. (This is just a quick wrapper I
wrote to learn how to interface C libraries with OCaml).
It can be downloaded from
sourceforge or here gz-0.5.7.tar.gz
and here is some documentation.
- Discrete Interval Encoding Tree (diet)
- This data structure implements sets of integers in a simple and efficient
- Skip lists
- A skip list is a probabilistic list-based data structure that is a simple
and efficient subsitute for balanced trees. Skip lists can implement a dictionary
abstract data type. The data structure is not persistent, though.
A Skip List Cookbook.
- An autoconf macros file to check for OCaml tools in configure scripts :
Olivier Andrieu <firstname.lastname@example.org>
Project hosted on
Last change: Mon 19 Sep 2005 03:50:16 PM CEST