[Matplotlib-users] Get pixels position of a Text object

2007-08-31 Thread Romain Bignon
Hello, I want to get pixels position of a Text object on my imagine, but there isn't any methods of this class to get them. How can I do ? Regards, -- Romain Bignon - http://progs.coderz.info http://www.inl.fr - This

Re: [Matplotlib-users] Get pixels position of a Text object

2007-08-31 Thread John Hunter
On 8/31/07, Romain Bignon [EMAIL PROTECTED] wrote: Hello, I want to get pixels position of a Text object on my imagine, but there isn't any methods of this class to get them. How can I do ? You can use the t.get_window_extent() method of the text object, with the caveat that this only works