Re: [Matplotlib-users] how do label with matshow

2010-08-20 Thread Eric Firing
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

[Matplotlib-users] how do label with matshow

2010-08-20 Thread Patricia
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_