I'm planning to try a small Python MCMC simulation, utilizing a simple 2D grid of densities. I wrote a new heatmap script as a first step. I'll post the code today and then use it in later updates.
One small thing, the original version asked
matplotlib
for the xlim
and ylim
and then calculated fractional square dimensions to use. Since it seemed a bit slow, I changed the script so that we tell the Axes
object what dimensions we want (the array's shape
, naturally). Then there are no fractions and the increment is +1. However, it was not significantly faster at all. Here is the timeit
output:Here's the listing: