Re: [Matplotlib-users] autocrop function

2009-06-23 Thread Nils Wagner
On Wed, 10 Jun 2009 16:32:08 -0400 Jae-Joon Lee wrote: I guess I misunderstood your intention. As you posted the message in the mpl list, I assumed that you want to crop out the boundary of the mpl figure, which seems to be not the case. Sorry for the noise. -JJ Hi, I found a way to run

Re: [Matplotlib-users] autocrop function

2009-06-10 Thread Jae-Joon Lee
I guess I misunderstood your intention. As you posted the message in the mpl list, I assumed that you want to crop out the boundary of the mpl figure, which seems to be not the case. Sorry for the noise. -JJ On Wed, Jun 10, 2009 at 12:09 PM, Nils Wagner wrote: > On Wed, 10 Jun 2009 02:26:54 -040

Re: [Matplotlib-users] autocrop function

2009-06-09 Thread Jae-Joon Lee
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 wrote: > Hi all, > > I am looking for

Re: [Matplotlib-users] autocrop function

2009-06-09 Thread Anton Vasilescu
You're right, I haven't read your question properly... I am not sure that autocrop exists in pil. Maybe somebody with more experience can shed some light. Sent from my iPhone On Jun 9, 2009, at 12:10 PM, "Nils Wagner" wrote: On Tue, 9 Jun 2009 11:31:19 -0700 (PDT) Anton Vasilescu wrote: I

Re: [Matplotlib-users] autocrop function

2009-06-09 Thread Nils Wagner
On Tue, 9 Jun 2009 11:31:19 -0700 (PDT) Anton Vasilescu wrote: > I wasn't able to find one in Matplotlib but you can use >PIL library for all the imaging work. Really easy to use. > Here is the webpage for it: >http://www.pythonware.com/products/pil/index.htm > > Anton > > Hi Anton, Thank

Re: [Matplotlib-users] autocrop function

2009-06-09 Thread Anton Vasilescu
I wasn't able to find one in Matplotlib but you can use PIL library for all the imaging work. Really easy to use. Here is the webpage for it: http://www.pythonware.com/products/pil/index.htm Anton From: Nils Wagner To: matplotlib-users@lists.sourceforge.net