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
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
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))
On Fri, Sep 10, 2010 at 4:27 AM, Nils Wagner
nwag...@iam.uni-stuttgart.dewrote:
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 =