I start using matplotlib a month ago, so I'm still learning.
I'm trying to do a heatmap with matshow. My code is the following:
data = numpy.array(a).reshape(4, 4)
cax = ax.matshow(data, interpolation='nearest', cmap=cm.get_cmap('PuBu'),
cbar = fig.colorbar(cax)
where alpha is a model from django with 4fields: 'ABC', 'DEF', 'GHI', 'JKL'
the thing is that I don't know why, the label 'ABC' doesn't appear, leaving the
last cell without label.
I would like to known how do I properly label my heatmap, when I use set_ticks
the figure decrease size and the colorbar stay bigger than the figure.
If someone would have a clue how to modify my script in a way to appear the
'ABC' I would be grateful