I am plotting a heatmap in matplotlib using:
plt.pcolor(rand(5,5))
how can I annotate the heatmap with the actual numbers plotted? meaning in each cell of the plotted heatmap, put the value corresponding to that cell in the 5×5 matrix passed to pcolor. thanks.
There is no automatic feature to do such a thing, but you could loop through each point and put text in the appropriate location:
HTH