How to get Text dimensions

Hi,

when I have a Text instance, how can I get the dimensions of it?

···

--
View this message in context: http://www.nabble.com/How-to-get-Text-dimensions-tp21127748p21127748.html
Sent from the matplotlib - users mailing list archive at Nabble.com.

Hello,

I think with dimensions you mean the width height and/or the corresponding
corners of the box surrounding the text (its bounding box). I attached an
example, which illustrates my solution. I hope it is useful to you.

regards Matthias

get_text_limits.py (843 Bytes)

···

On Monday 22 December 2008 14:24:06 Franta wrote:

Hi,

when I have a Text instance, how can I get the dimensions of it?