If you're using very recent version of mpl, you may try savefig with
"bbox_inches" option.

savefig("a.png", bbox_inches="tight")

The algorithm is not perfect, but will work for most of simple plots.

Regards,

-JJ


On Tue, Jun 9, 2009 at 1:22 PM, Nils Wagner<nwag...@iam.uni-stuttgart.de> wrote:
> Hi all,
>
> I am looking for an autocrop function.
>
> It should remove borders from an image.
> Is it available in matplotlib ?
>
> Any pointer would be appreciated.
>
> Thanks in advance
>
>                                                Nils
>
>
>
>
> ------------------------------------------------------------------------------
> Crystal Reports - New Free Runtime and 30 Day Trial
> Check out the new simplified licensing option that enables unlimited
> royalty-free distribution of the report engine for externally facing
> server and web deployment.
> http://p.sf.net/sfu/businessobjects
> _______________________________________________
> Matplotlib-users mailing list
> Matplotlib-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>

------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to