Re: [Matplotlib-users] how to scale colorbar size to image size?

2011-04-21 Thread Jae-Joon Lee
On Tue, Apr 12, 2011 at 3:31 AM, Jonathan Slavin jsla...@cfa.harvard.edu wrote: (Shouldn't the default behavior be to scale to height if the colorbar is vertical and width if its horizontal?) Because of the design of the matplotlib, this is not straight forward to implement. While there could

[Matplotlib-users] how to scale colorbar size to image size?

2011-04-11 Thread Jonathan Slavin
Hi all: I'm looking for a simple way to scale a color bar so it will be the same height as the image. It seems to work automatically if the image is at least as tall as it is wide, but when it is wider than tall it seems to scale to the width rather than height. (Shouldn't the default behavior