I'm trying to create a grid based heatmap like the one shown here
The code to generate it is here:
However, when I run the code (MacOS), I get something very different:
There is much more gradation and the hard edges are all gone. How can I get the hard edges like on matplotlib's website?