Re: [Matplotlib-users] word wrap

2008-08-21 Thread Jae-Joon Lee
Hi, I guess the extent of the rendered text is not known until the figure is drawn. The link below would be helpful. http://matplotlib.sourceforge.net/doc/html/faq/howto_faq.html#how-do-i-automatically-make-room-for-my-tick-labels So. it is possible to know the text length, but you need to wait

[Matplotlib-users] word wrap

2008-08-21 Thread Ben Axelrod
I am trying to draw some text inside of a rectangle. The text can be longer than the rectangle, so I would like to wrap the text. I doubt MPL has this kind of functionality built in, so I am expecting to write it myself. I think I read somewhere that it is not possible to get the length of tex