Question: Group 2D coordinate system into squares

Hi, I possess values for X and Y in an intervall 1 .. 100 . For each combination (X,Y) you get a Z value of 1,2,3 or 4. Depending on the value Z each coordinate (X/Y) in the 2D CS should be displayed in form of a square (if Z=1 ->blue, Z=2->red,Z=3->yellow, Z=4->black). As a result I have to receive a kind of landscape with colored squares. Thanks a lot!
Please Wait...