If one inserts a colorbar after using matshow, then the matrix plot's 
aspect ratio is incorrect altered.  Here are 2 cases to compare

import pylab
matrix = pylab.rand(30,30)

1) matshow() before colorbar()

pylab.matshow(matrix)
pylab.colorbar()
pylab.show()

The matrix plot is squished in the x-direction while not in the y thus 
losing its proper aspect ratio (equal by default).

2) imshow() before colorbar()

pylab.imshow(matrix)
pylab.colorbar()
pylab.show()

Everthing is okay in this case.


Thanks,
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