package jupyter-archimedes
A Jupyter-friendly 2D plotting library (Archimedes backend)
Install
Dune Dependency
Authors
Maintainers
Sources
jupyter-archimedes-2.7.3.tbz
sha256=8c6d8e8b9c89166f38248337f101bbfa7ac564857bd4b2a820423ac541374636
Description
This library registers Jupyter backend to Archimedes, a simple and easy-to-use 2D plotting library. You can embed chart images into Jupyter notebooks.
Published: 23 Mar 2022
README
jupyter-archimedes
A Jupyter-friendly 2D plotting library based on Archimedes.
jupyter-archimedes
adds OCaml Jupyter backend to Archimedes, a 2D plotting library written in OCaml. You can plot and embed figures on Jupyter.
Getting started
Install jupyter-archimedes
by opam:
opam install jupyter-archimedes
Usage
We show a simple example of jupyter-archimedes as follows:
#use "topfind" ;; (* or you can automatically load topfind by adding this line to ~/.ocamlinit *)
#require "jupyter-archimedes" ;; (* an Archimedes backend is added. *)
let vp = A.init ~w:560. ~h:260. ["jupyter"] in
A.Axes.box vp ; (* Draw tics. *)
A.fx vp sin 0.0 10.0 ; (* Plot a sin curve from 0 up to 10. *)
A.close vp (* Show a figure. *)
Other examples are in the notebooks directory.
Dependencies (5)
- archimedes
-
cairo2
>= "0.6"
-
jupyter
>= "2.7.2"
-
dune
>= "2.8.0"
-
ocaml
>= "4.04.0"
Dev Dependencies (1)
-
ocp-indent
with-test & >= "1.7.0"
Used by
None
Conflicts
None
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page