matplotlib

Plotting using Matplotlib through python
README

Plotting for ocaml using matplotlib pyplot and object-orient apis.

Use in Jupyter notebooks

To use in an ocaml jupyter notebook, you can add the following in you jupyter init script, or in a notebook cell.

open Matplotlib;;
let plot () =
  let data = Mpl.plot_data `png in
  ignore (Jupyter_notebook.display ~base64:true "image/png" data);;

let () =
    Mpl.set_backend Agg;
    Mpl.style_use "ggplot"
;;

Using plot in the notebook then flushes the current picture and displays it (no need for a temporary file, everything is in memory).

Install
Published
19 Jun 2022
Sources
0.2.tar.gz
md5=a08efaf79f9d8d4284d35ada560aae7f
sha512=e345241f891fd3fd3e61b7161ba9df9f9e174f20781021e662481b01de4fcfef34ce0e85e63144088ae11417c878816a235e4fd7478559b60f0d5f18a5911253
Dependencies
ocaml
>= "4.06"
dune
>= "1.4"
pyml
>= "20180530"
base
>= "v0.11.0"
Reverse Dependencies