Dr. Phillip M. Feldman wrote:
> I am creating a scatter plot using pyplot.scatter(), and adding a colorbar
> via pyplot.colorbar().  The result is very nice, except that there is a
> large amount of empty space between the right-hand edge of the axes and the
> figure window.  When I adjust the right-hand margin using something like      
>    
> pyplot.subplots_adjust(right=0.95), the right-hand margin is in fact
> reduced, but the colorbar remains in the same location and is consequently
> inside the axes.  Any advice will be appreciated.

Try calling subplots_adjust(right=0.99)  before calling colorbar.  Then 
the colorbar axes will be generated by stealing space from the enlarged 
main axes.

Eric

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to