Re: [Matplotlib-users] remove white area around

2011-06-14 Thread Justin McCann
On Mon, Jun 13, 2011 at 8:37 AM, Andrea Crotti wrote: > > I found this question asked other times, but trying myself there is no > way that I get something working.. > > So I just want to generate a pdf from a plot with the smallest possible > margin, and I was trying for example this: > >fig

[Matplotlib-users] remove white area around

2011-06-13 Thread Andrea Crotti
I found this question asked other times, but trying myself there is no way that I get something working.. So I just want to generate a pdf from a plot with the smallest possible margin, and I was trying for example this: fig = plt.figure(1) fig.frameon = False plt.plot(range(10), ran