On 08/20/2010 12:38 AM, Patricia wrote:
>
>
> Hi all,
>
> 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('PuB
Hi all,
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'),
norm=LogNorm())
cbar = fig.colorbar(cax)
ax.set_