|
From: John H. <jdh...@ac...> - 2006-10-20 15:48:52
|
>>>>> "Khem" == Khem Raj <raj...@gm...> writes:
Khem> Hi I am new to matplotlib and I am trying to use it to draw
Khem> a matrix. I would want to give a different color to each box
Khem> depending upon the value this matrix element has
Khem> Could someone help me in quick start meanwhile I am looking
Khem> into documentation.
figure()
imshow(rand(10,5), cmap=cm.jet, interpolation='nearest', aspect='auto')
colorbar()
figure()
pcolor(rand(10,5), cmap=cm.hot)
JDH
|