I have a numpy array with random values. I have plotted the values in the array using imshow() so that each element shows as a grey-scale square. The problem is that the labels (0, 1, 2 etc) start at the bottom corner. I would like to move them along a bit so they are centred underneath each square. Is there a straight-forward way of doing this?
preguntado el 31 de julio de 12 a las 13:07
Acabo de encontrar http://matplotlib.sourceforge.net/examples/pylab_examples/image_interp.html and the most straightforward way is just to have grid(True) ->woohoo!