>>>>> "Ryan" == Ryan Krauss <[EMAIL PROTECTED]> writes:
Ryan> You have two options. savefig does have a dpi option that
Ryan> will essentially set the figure size for the saved file:
Ryan> savefig('myfile.png',dpi=300)
Ryan> play with dpi until you get a figure size you like.
Ryan> The other way to set the figure size is to specify it when
Ryan> you create the figure: figure(1,(10,8)) would create a
Ryan> fairly large figure. The figure (1 in this case) must not
Ryan> already exist or at least it can't be shown on your screen
Ryan> already. By that I mean if you have already called
Ryan> figure(1) previously in your code, you must close it before
Ryan> you try to call figure(1,(10,8)) or the figure size won't be
Ryan> affected.
Just to elaborate a bit. The figure size in pixels is the figure size
in inches * the dpi. you can set the figure size in inches when you
create it
fig = figure(figsize=(6,8)) # 6x8 inches
and when you save it set the dpi
fig.savefig('somefile.png', dpi=200)
and you will have a 1200x1600 pixel PNG file.
JDH
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Matplotlib-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-users