Re: [Matplotlib-users] Adjusting Image size

2010-09-11 Thread Alan G Isaac
On 9/10/2010 5:27 AM, Nils Wagner wrote: > what is needed to save a figure when the size is given in > pixels, i.e. 1024x772 ? > The default is 800x600 pixels. Did you already get an answer? My understanding is that you set the figure size in *inches*, and then by setting its ``dpi`` you determine

Re: [Matplotlib-users] Adjusting Image size

2010-09-10 Thread Benjamin Root
On Fri, Sep 10, 2010 at 4:27 AM, Nils Wagner wrote: > Hi all, > > what is needed to save a figure when the size is given in > pixels, i.e. 1024x772 ? > The default is 800x600 pixels. > > from pylab import plot, savefig > from numpy import sin,linspace,pi > x = linspace(0,2*pi,200) > plot(x,sin(x))

Re: [Matplotlib-users] Adjusting Image size

2010-09-10 Thread Tony S Yu
On Sep 10, 2010, at 5:27 AM, Nils Wagner wrote: > Hi all, > > what is needed to save a figure when the size is given in > pixels, i.e. 1024x772 ? > The default is 800x600 pixels. > > from pylab import plot, savefig > from numpy import sin,linspace,pi > x = linspace(0,2*pi,200) > plot(x,sin(x))

[Matplotlib-users] Adjusting Image size

2010-09-10 Thread Nils Wagner
Hi all, what is needed to save a figure when the size is given in pixels, i.e. 1024x772 ? The default is 800x600 pixels. from pylab import plot, savefig from numpy import sin,linspace,pi x = linspace(0,2*pi,200) plot(x,sin(x)) savefig('test') Nils --