Re: [Matplotlib-users] Problem with text bounding box

2012-09-04 Thread Eric Firing
On 2012/09/03 9:36 PM, Jakob Gager wrote: > On 09/04/2012 09:13 AM, Eric Firing wrote: >> On 2012/09/03 8:33 PM, Jakob Gager wrote: >>> On 09/03/2012 08:57 PM, Eric Firing wrote: It looks like you can either use the _get_layout() method (which requires that you specify the renderer), or,

Re: [Matplotlib-users] Problem with text bounding box

2012-09-04 Thread Jakob Gager
On 09/04/2012 09:13 AM, Eric Firing wrote: > On 2012/09/03 8:33 PM, Jakob Gager wrote: >> On 09/03/2012 08:57 PM, Eric Firing wrote: >>> It looks like you can either use the _get_layout() method (which >>> requires that you specify the renderer), or, if you know the text object >>> will be among th

Re: [Matplotlib-users] Problem with text bounding box

2012-09-04 Thread Eric Firing
On 2012/09/03 8:33 PM, Jakob Gager wrote: > On 09/03/2012 08:57 PM, Eric Firing wrote: >> It looks like you can either use the _get_layout() method (which >> requires that you specify the renderer), or, if you know the text object >> will be among the last 50 for which _get_layout() has been called

Re: [Matplotlib-users] Problem with text bounding box

2012-09-03 Thread Jakob Gager
On 09/03/2012 08:57 PM, Eric Firing wrote: > It looks like you can either use the _get_layout() method (which > requires that you specify the renderer), or, if you know the text object > will be among the last 50 for which _get_layout() has been called, you > can use txt1.cached[txt1.get_prop_typ()

Re: [Matplotlib-users] Problem with text bounding box

2012-09-03 Thread Eric Firing
On 2012/09/03 1:38 AM, Jakob Gager wrote: > Recently, I switched from matplotlib 0.99 to 1.0.1 and unfortunately > discovered > that my text scaling script stopped working properly. The script scales the > given text > to fit into the current figure. > > A quick example of what I'm doing (works i

[Matplotlib-users] Problem with text bounding box

2012-09-03 Thread Jakob Gager
Recently, I switched from matplotlib 0.99 to 1.0.1 and unfortunately discovered that my text scaling script stopped working properly. The script scales the given text to fit into the current figure. A quick example of what I'm doing (works in 0.99, but not in 1.0.1 and 1.1.1rc): import matplotlib