I have data similar in this format
f = [
((0, 2), 519.52876712328771),
((0, 3), 514.56307692307701),
((0, 4), 564.86538461538464),
((1, 1), 641.70774647887322),
((1, 2), 537.97177419354841),
((1, 3), 529.85214285714301),
((1, 4), 467.36338028169018)
]
I want to plot a checkerboard color plot of box 1 unit size. The location or the (x,y)
co-ordinate will be given by f[i][0]
and the color will be given by f[i][1]
. As one can see the chekerboard plot will not fill up the entire image.
How would I do this in python using matplotlib?