Continuing from a previous thread re the new matshow(), adding a 
colorbar() causes the matrix to shrink relative to the colorbar. 
Furthermore this colorbar overlaps with the figure title.

For those like me who need a colorbar as a legend and/or who do not want 
the matrix visualisation in a new figure with aspect ratio constrained, 
all that needs to be done is to replace line 1424 in pylab.py for 
matshow() as follows

     # OLD LINE: fig = figure(fignum, figsize=figaspect(A))
     fig = gcf()

You're probably best off to create a new function matshowB() in case you 
ever need the default functionality.

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