I have been trying to i. plot a figure using pcolormesh ii. set the proportions of the figure using ax.set_aspect iii. draw colorbar
Problem is, colorbar height uses whole of axes box, not just height of figure (whose proportions were set by call of ax.set_aspect(aspect=2.,adjustable='box')). I can't set the colorbar height manually either, as I don't know how to get out the bounding box of the figure -- ax.get_position() just gives the full axes box, which is unaffected by ax.set_aspect. Is there any way of recovering the actual bounding box of the figure? The docstring for the method ax.set_position says: There are two position variables: one which is ultimately used, but which may be modified by apply_aspect, and a second which is the starting point for apply_aspect. which = 'active' to change the first; 'original' to change the second; 'both' to change both which sounds relevant, but these variables don't seem to apply to ax.get_position() --George Nurser. ------------------------------------------------------------------------- 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