Following up on the playing around I was having with heatmaps the other day, I made a few updates to the heatmap.py script to allow for each point to have an associated ‘intensity’. When the points are plotted, the intensities are normalised and each point plotted with a relative intensity (as shown in the image on the right).
Few other little changes I made:
- allow the area covered by the size of the final image to be specified, rather than using the max & min x/y coordinates from the input points
- change how the the dots are built – in theory should be a little quicker – but I’ve not tested with large enough dataset to know if it makes a big difference
- in my demo script I’ve shown how you can convert the latitude to its Mercartor projection coordinate
For those interested in the changes I made to the heatmap.py script you can download the diff and an example script. Any feedback, comments welcome 🙂