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

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to