On Wed, Sep 10, 2008 at 2:55 PM, Samir Wadhawan <[EMAIL PROTECTED]> wrote: > Hi, > > I am trying to draw a rectangle of a fixed size and them put a lable/text on > it. However if the text is too long, it goes out of bounds. Is there a way I > restrict the text within the rectangle margins.
would it suffice to draw text and put a rectangle around it? If so, you can do ax.text(x, y, label, bbox=dict(facecolor=red, alpha=0.5)) where bbox is a dict of Rectangle properties I suspect this is not what you are looking for based on your question, but I wanted to mention it just in case. JDH ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users