how to reduce width of figure border ?

Hello,

The attached script was used to generate the attached figure.

I am seeking guidance on how to (at run-time) reduce the width of the
(black) border on the right side of the figure.

All of my attempts have either cropped the color bar (on the left) or
shifted the color bar over the “image” area of the figure.

Thanks,

– jv

P.S.

I’m using Python 2.6.4 and matplotlib 0.99.1.

figure with colorbar on left.py (2.43 KB)

trial.png

change line 29 to:
left, bottom, width, height = 0.1, 0.07, 1., 0.84 # values in 0-1 relative figure coordinates -- allow space on left for colorbar

it works on my machine (python 2.5 and mpl 0.99, mac os X 10.4).

Pierre

···

Le 11 mars 10 à 23:36, Jim Vickroy a écrit :

Hello,

The attached script was used to generate the attached figure.

I am seeking guidance on how to (at run-time) reduce the width of the (black) border on the right side of the figure.

All of my attempts have either cropped the color bar (on the left) or shifted the color bar over the "image" area of the figure.

Thanks,
-- jv

P.S.
I'm using Python 2.6.4 and matplotlib 0.99.1.
<figure with colorbar on left.py><trial.png>
------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Pierre de Buyl wrote:

change line 29 to:
left, bottom, width, height = 0.1, 0.07, 1., 0.84 # values in 0-1 relative figure coordinates -- allow space on left for colorbar

it works on my machine (python 2.5 and mpl 0.99, mac os X 10.4).

Pierre

Thanks Pierre. Your suggestion (along with a change in the figsize parameter setting) got me going in the right direction -- so to speak. -- jv

···

Le 11 mars 10 à 23:36, Jim Vickroy a écrit :

Hello,

The attached script was used to generate the attached figure.

I am seeking guidance on how to (at run-time) reduce the width of the (black) border on the right side of the figure.

All of my attempts have either cropped the color bar (on the left) or shifted the color bar over the "image" area of the figure.

Thanks,
-- jv

P.S.
I'm using Python 2.6.4 and matplotlib 0.99.1.
<figure with colorbar on left.py><trial.png>
------------------------------------------------------------------------------

Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev_______________________________________________

Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users