|
From: Suresh P. <sto...@ya...> - 2007-03-28 17:43:53
|
The new matshow() seems to like ticks every 4 units (or multiples of 4 for larger scales) rather than the normal, more desirable every 5 units. Compare: import pylab matrix = pylab.rand(30,30) pylab.matshow(matrix) pylab.show() with import pylab matrix = pylab.rand(30,30) pylab.imshow(matrix) pylab.show() Looking at the code right now, but since matshow() calls imshow(), it is not obvious to me. I presume it has something to do with the line ax = fig.add_axes([0.15, 0.09, 0.775, 0.775]) in matshow(). Still learning the internals of mpl ... Also, as mentioned in a previous thread, the new matshow() is missing tick marks on the lower x-axis. Cheers, Suresh |