Dear all, I have an object that is a matrix (i.e. a list of lists) and I neet do plot it on screen as an image. My image have values 1 and 2, and I would like set different colors for each level. I tryed figure it out without success. In fact my images are 512x512, but I include a 10x10 sample below.
mymatrix=[[1,2,2,2,1,2,2,2,1,1], [2,2,1,1,1,1,2,2,1,2], [1,1,2,2,1,1,1,1,1,1], [1,2,2,1,2,1,1,2,2,2], [2,1,2,1,1,1,1,2,1,1], [1,2,2,1,2,2,1,2,1,1], [2,1,2,1,1,1,2,1,1,1], [2,2,1,2,1,2,2,2,2,2], [2,2,2,1,2,2,2,1,1,1], [1,1,1,2,2,2,1,2,2,1]] Any help are welcome. Cheers milton
_______________________________________________ Image-SIG maillist - Image-SIG@python.org http://mail.python.org/mailman/listinfo/image-sig