acerbilab / pyvbmc

PyVBMC: Variational Bayesian Monte Carlo algorithm for posterior and model inference in Python
https://acerbilab.github.io/pyvbmc/
BSD 3-Clause "New" or "Revised" License
114 stars 6 forks source link

fix: remove bugs with vp.plot() #35

Closed Solosneros closed 2 years ago

Solosneros commented 2 years ago

I fixed a bug that occured when using a custom figure with vp.plot() e.g. like this: vp.plot(plot_style={"corner":{"fig": plt.figure(figsize=(6,6))}}).

Furthermore, I remove the buggy show_figure parameter of vp.plot(). The user just has to call plt.plot() after the vp.plot() if she wants to display the figure outside of jupiter notebooks. This seemed like the most straightforward way. I did the same in pyvbmc.py when plotting the iterations.