# \[ANN\] Oplot 0.50

**URL:** <https://discuss.ocaml.org/t/ann-oplot-0-50/5235>\
**Category:** Community\
**Tags:** graphics, announce\
**Created:** [February 29, 2020, 9:44am UTC](https://discuss.ocaml.org/t/ann-oplot-0-50/5235 "2020-02-29T09:44:56Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![sanette](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ocaml.org/sanette/32/1645_2.png) [@sanette](https://discuss.ocaml.org/u/sanette)\
**Post date:** [February 29, 2020, 9:44am UTC](https://discuss.ocaml.org/t/ann-oplot-0-50/5235/1 "2020-02-29T09:44:56Z")

</div>

I’m happy to announce the revival of the `oplot` library.

If you ever wanted to quickly draw the graph of an intriguing mathematical function, animate it by varying a parameter, or explore a 3D surface, without leaving your favorite programming language, then `oplot` is for you.

If you’re familiar with LaTeX and want to produce nice mathematical graphics decorated with LaTeX formulas, that you can view onscreen, export to images or vector graphics (pdf, eps) then `oplot` is even more for you!

- Installation: `opam install oplot`
- documentation: [https://sanette.github.io/oplot/oplot/Oplot/index.html](https://sanette.github.io/oplot/oplot/Oplot/index.html)
- source code, issues, etc: [https://github.com/sanette/oplot](https://github.com/sanette/oplot)

Drawing is hardware accelerated (opengl) thanks to the venerable `ocamlsdl` and `lablgl` libraries. I’m glad they still work perfectly.

Happy plotting.

---

<div class="post-metadata">

**Author:** ![smolkaj](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ocaml.org/smolkaj/32/266_2.png) [@smolkaj](https://discuss.ocaml.org/u/smolkaj)\
**Post date:** [March 1, 2020, 12:04am UTC](https://discuss.ocaml.org/t/ann-oplot-0-50/5235/2 "2020-03-01T00:04:03Z")

</div>

Amazing! I’m very happy to see such libraries appear in OCaml 🙂

---

<div class="post-metadata">

**Author:** ![dmbaturin](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ocaml.org/dmbaturin/32/2074_2.png) [@dmbaturin](https://discuss.ocaml.org/u/dmbaturin)\
**Post date:** [March 4, 2020, 3:14pm UTC](https://discuss.ocaml.org/t/ann-oplot-0-50/5235/3 "2020-03-04T15:14:31Z")

</div>

Looks great! How would one go about embedding that output in a GTK or Qt application? How about an WebGL/HTML5 output? Is anyting like that planned?

---

<div class="post-metadata">

**Author:** ![sanette](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ocaml.org/sanette/32/1645_2.png) [@sanette](https://discuss.ocaml.org/u/sanette)\
**Post date:** [March 4, 2020, 4:57pm UTC](https://discuss.ocaml.org/t/ann-oplot-0-50/5235/4 "2020-03-04T16:57:44Z")

</div>

Thanks for the message! yes, embedding in GTK is done in `gOplot`:

> **[goplot](https://sanette.github.io/goplot/)**
>
> Mathematical plotter for the desktop

  
(haven’t made the announce yet because I wanted to correct a few things, but it’s very usable already)

I have no experience in QT unfortunately, nor WebGL. Help welcome.

My priority would be to embed this in [bogue](http://sanette.github.io/bogue/Principles.html), but it’s not trivial due to conflicting SDL/OpenGL contexts

---

<div class="post-metadata">

**Author:** ![XVilka](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ocaml.org/xvilka/32/5334_2.png) [@XVilka](https://discuss.ocaml.org/u/XVilka)\
**Post date:** [March 5, 2020, 4:01am UTC](https://discuss.ocaml.org/t/ann-oplot-0-50/5235/5 "2020-03-05T04:01:37Z")

</div>

Could be integrated somehow (not sure, just venturing the idea) with [Owl](https://github.com/owlbarn/), see [their site](https://ocaml.xyz/) for more information. They use a [custom plotting library](https://github.com/owlbarn/owl/tree/master/src/plplot) for now.

---

<div class="post-metadata">

**Author:** ![sanette](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ocaml.org/sanette/32/1645_2.png) [@sanette](https://discuss.ocaml.org/u/sanette)\
**Post date:** [March 5, 2020, 7:38am UTC](https://discuss.ocaml.org/t/ann-oplot-0-50/5235/6 "2020-03-05T07:38:58Z")

</div>

They do a fantastic work at Owl. Their plotting library seems to be quite promising too. We could try to work on an Owl-Oplot interface

---

<div class="post-metadata">

**Author:** ![mseri](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ocaml.org/mseri/32/91_2.png) [@mseri](https://discuss.ocaml.org/u/mseri)\
**Post date:** [March 5, 2020, 8:33am UTC](https://discuss.ocaml.org/t/ann-oplot-0-50/5235/7 "2020-03-05T08:33:47Z")

</div>

I was looking into it after I saw your release on github. We are trying to abstract away the plotting in owl to allow multiple backend to experiment and flourish, I think it would be great to have an integration with oplot.
