[Matplotlib-users] Help: How to limit text to a definite area

2008-09-10 Thread Samir Wadhawan
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. heres what I am using ## def rectangle(self, lower, u

[Matplotlib-users] Cell and auto_set_font_size() question

2008-09-16 Thread Samir Wadhawan
Hi, I am new to Python and trying to use Cell and its method auto_set_font_size() here is the code " def draw_Cell(self, lower, upper, node1, branch_name): c = Cell(lower, upper[0]-lower[0], upper[1] - lower[1], edgecolor='k', text = branch_name, fa