>>>>> "Khem" == Khem Raj <[EMAIL PROTECTED]> 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

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to