CamDavidsonPilon / Probabilistic-Programming-and-Bayesian-Methods-for-Hackers

aka "Bayesian Methods for Hackers": An introduction to Bayesian methods + probabilistic programming with a computation/understanding-first, mathematics-second point of view. All in pure Python ;)
http://camdavidsonpilon.github.io/Probabilistic-Programming-and-Bayesian-Methods-for-Hackers/
MIT License
26.67k stars 7.86k forks source link

Added math.ceil function plt.subplot. #352

Open wnowak10 opened 6 years ago

wnowak10 commented 6 years ago

In this way, if we ask to perform a number of trials that is an odd number, the subplot code won't break. For example, if we wanted to make 9 plots, we would establish math.ceil(9/2) = 5 rows.