bayesmix-dev / bayesmix

Flexible Bayesian nonparametric mixture models in C++
https://bayesmix.rtfd.io
BSD 3-Clause "New" or "Revised" License
22 stars 18 forks source link

Plotting in C++ #108

Closed brunoguindani closed 2 years ago

brunoguindani commented 2 years ago

This resolves #87.

brunoguindani commented 2 years ago

This should be ready! 2D density plotting has been particularly difficult, as the library's contour() algorithm is extremely slow, so I had to find another way.

mberaha commented 2 years ago

I've made several modifications, most notably:

1- the contour plot actually works and is really fast 2- moved plot functions to a separate file 3- changed a couple of names here and there

mberaha commented 2 years ago

By the way, I had to move the contour plot so that it's the last one, otherwise all the remaining plots would turn out blank... Go figure!

brunoguindani commented 2 years ago

Alright, this is fine for me! Please merge at will, or wait for @TeoGiane's review first, as you'd like