Re: [Matplotlib-users] Make the area a bit larger

2011-03-02 Thread Paul Ivanov
Andrea Crotti, on 2011-03-01 10:29, wrote: > Gökhan Sever writes: > > You can try: > > > > fig, ax = plt.subplots(1,1) > > ax.plot(range(10)) > > fig.subplots_adjust(left=0.05, right=0.95, bottom=0.05, top=0.95) > > > > Uhm strange, with the version of matplotlib that I have know I have > subplo

Re: [Matplotlib-users] Make the area a bit larger

2011-03-01 Thread Andrea Crotti
Paul Ivanov writes: > > Hi Andrea, > > I think Gökhan is pointing out a different feature than the one > you want. You seem to want to adjust the x and y limits of the > plot to be some fraction larger than the data that's plotted. > > You can do this with: > > ax = plt.subplot(111) > ax.plot(ra

Re: [Matplotlib-users] Make the area a bit larger

2011-03-01 Thread Andrea Crotti
Gökhan Sever writes: > Hi, > > You can try: > > fig, ax = plt.subplots(1,1) > ax.plot(range(10)) > fig.subplots_adjust(left=0.05, right=0.95, bottom=0.05, top=0.95) > > If you choose WXAgg as your backend you get a nice config tool to adjust > spacing in the figure. Then just pass those numbers in

Re: [Matplotlib-users] Make the area a bit larger

2011-02-28 Thread Paul Ivanov
Gökhan Sever, on 2011-02-28 11:32, wrote: > On Mon, Feb 28, 2011 at 10:48 AM, Andrea Crotti > wrote: > > > So since I wanted some space on the borders of my graph, I did this > > really extremely convoluted thing, which apparently works... > > I get a 10% more area on each side, but I'm quite sur

Re: [Matplotlib-users] Make the area a bit larger

2011-02-28 Thread Gökhan Sever
On Mon, Feb 28, 2011 at 10:48 AM, Andrea Crotti wrote: > So since I wanted some space on the borders of my graph, I did this > really extremely convoluted thing, which apparently works... > I get a 10% more area on each side, but I'm quite sure there's a better > way to this, right? > > I didn't f

[Matplotlib-users] Make the area a bit larger

2011-02-28 Thread Andrea Crotti
So since I wanted some space on the borders of my graph, I did this really extremely convoluted thing, which apparently works... I get a 10% more area on each side, but I'm quite sure there's a better way to this, right? I didn't find any function to pass an increment to the size that's why I did