Re: [Matplotlib-users] Re moving white space surrounding plots

2010-06-10 Thread mdekauwe
Unless I am mistaken subplots_adjust doesn't do anything as I am building an axes instance. Doing... fig = plt.figure(figsize=(8, 4)) ax = fig.add_axes([0.1, 0.15, 0.7, 0.7]) has shrunk the white space, though I think the font of the legend looks a bit less well defined, but perhaps that is just

Re: [Matplotlib-users] Re moving white space surrounding plots

2010-06-10 Thread Benjamin Root
Just to make sure, were you calling subplots_adjust() *before* calling subplot()? Calling it after subplot() shouldn't have an effect on the already created axes (I think...). Ben Root On Thu, Jun 10, 2010 at 3:41 PM, mdekauwe wrote: > > Unless I am mistaken subplots_adjust doesn't do anything

Re: [Matplotlib-users] Re moving white space surrounding plots

2010-06-10 Thread mdekauwe
Hi, yes as I understand it (happy to be corrected)... fig = plt.figure(figsize=(8, 4)) fig.subplots_adjust(bottom=0.05) does nothing unless you also do ax = fig.add_subplot(111) but as I am also doing ax = fig.add_axes([0.1, 0.15, 0.7, 0.7]), it means I would just get two frames. Benja

Re: [Matplotlib-users] Re moving white space surrounding plots

2010-06-10 Thread Jae-Joon Lee
On Thu, Jun 10, 2010 at 1:55 PM, mdekauwe wrote: > fig = plt.figure(figsize=(8, 6)) This. Also play with subplots_adjust. -JJ -- ThinkGeek and WIRED's GeekDad team up for the Ultimate GeekDad Father's Day Giveaway. ONE

Re: [Matplotlib-users] Re moving white space surrounding plots

2010-06-10 Thread mdekauwe
Hi OK assuming upgrading is going to be a hassle. I just looked into and some of the libraries need changing etc etc. Do you know what I would change as a short term work around? When you said adjust size, did you mean this line fig = plt.figure(figsize=(8, 6)) or this ax = fig.add_axes([0.

Re: [Matplotlib-users] Re moving white space surrounding plots

2010-06-10 Thread Jae-Joon Lee
On Thu, Jun 10, 2010 at 9:28 AM, mdekauwe wrote: > so by the sounds of it an outdated version? But your example will work on a > newer version? I think bbox_inches option is not supported with your version of matplotlib. You may upgrade to newer version, or you have to manually adjust the figure

Re: [Matplotlib-users] Re moving white space surrounding plots

2010-06-10 Thread mdekauwe
Hmm OK thanks. It seems I am using In [3]: matplotlib.__version__ Out[3]: '0.98.5.3' so by the sounds of it an outdated version? But your example will work on a newer version? What version of matplotlib are yo

Re: [Matplotlib-users] Re moving white space surrounding plots

2010-06-09 Thread Jae-Joon Lee
What version of matplotlib are you using? With 0.99.1.1 (and likely later) and also with the svn version, using the bbox_inches="tight" actually produces an output with too small margin. With the svn version, following code should generate an output with an adequate margin. Otherwise, you cannot r

Re: [Matplotlib-users] Re moving white space surrounding plots

2010-06-08 Thread mdekauwe
Note - in case it isn't clear that white space between where I mention the example and the image is what I am referring to and below it again. mdekauwe wrote: > > Hi, > > when I make plots with the Basemap package I seem to be getting a large > amount of white space at the top and bottom of t

[Matplotlib-users] Re moving white space surrounding plots

2010-06-08 Thread mdekauwe
Hi, when I make plots with the Basemap package I seem to be getting a large amount of white space at the top and bottom of the plot, even if I use the option bbox_inches='tight'. Does anyone know how I can stop this happening? Example image... http://old.nabble.com/file/p28824528/diffmap_JULES_D