|
From: Ryan K. <rya...@gm...> - 2006-04-06 12:24:14
|
I don't think this is the default behavior. If I do
t=3Darange(0,1,0.01)
y=3Dsin(2*pi*t)
plot(t,y)
xlabel('Time (sec)')
ylabel('Amplitude')
savefig('test.png')
I get the attached png without the extra border you describe.
Ryan
On 4/6/06, Arne.Bittig <arn...@in...> wrote:
> Hi,
>
> I am using matplotlib to draw graphs. When I try to save a picture
> (using savefig; usually as png, but at some point I might need eps files
> as well), the actual graph comprises less than the central 50% of the
> image, the rest of the image is wasted space.
>
> I already tried figure(frameon =3D False, facecolor =3D 'w') and box(Fals=
e)
> to get rid of the redundant frame, but apparently it did not help (apart
> from removing the black frame, obviously, but what I want is to save
> only what is inside this frame).
>
> Any ideas how to do this? If not, does anyone know a python tool that
> handles pngs and would enable me to crop the picture in a second step?
>
> Arne
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by xPML, a groundbreaking scripting langua=
ge
> that extends applications into web and mobile media. Attend the live webc=
ast
> and join the prime developer group breaking into this new coding territor=
y!
> http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D110944&bid=3D241720&dat=
=3D121642
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
|