Re: [Matplotlib-users] Confused about get_tightbbox() and renderer

2009-08-12 Thread Damon McDougall
Jae-Joon, Brilliant! An even simpler solution! Thank you very much :) Figure.savefig() also takes pad_inches as a keyword argument and it's default is 0.1 inches. If you set it to 0.0 inches it can sometimes crop some of the x-axis label. I have found that if you do fig.savefig("a.pdf", bbox

Re: [Matplotlib-users] Confused about get_tightbbox() and renderer

2009-08-12 Thread Jae-Joon Lee
get_tightbbox is a bit experimental feature and it is discouraged for an ordinary user (maybe the method should not be an public method). Unless you understand how the internal transformation thing works, I'm afraid there is not much thing you can do with its return value. Instead, you should use

Re: [Matplotlib-users] Confused about get_tightbbox() and renderer

2009-08-12 Thread Damon McDougall
Sorry, I forgot to use a sensible subject for the email! Regards, --Damon On 12 Aug 2009, at 16:35, Damon McDougall wrote: Hello all, So I'm trying to use matplotlib's OO interface (so programming without using 'from pylab import *') and found this useful page:http://matplotlib.sourceforge.

[Matplotlib-users] Confused about get_tightbbox() and renderer

2009-08-12 Thread Damon McDougall
Hello all, So I'm trying to use matplotlib's OO interface (so programming without using 'from pylab import *') and found this useful page:http://matplotlib.sourceforge.net/leftwich_tut.txt after much googling. My problem is that, in general, after producing a plot, I would open the .pdf p