From: Andrea R. <ari...@pi...> - 2004-09-24 08:02:17
|
I'm very sorry, but I'm not able to get the box around my text yet. Here it is a minimal example. h = pyx.graph.graphxy(...) mytext = h.text(x_pos, y_pos, mystring) mytext.bbox() h.writeEPSfile("filename.eps") And the resulting plot has not any bounding box around "mystring". Clearly I'm missing something... Could you explain my fault? Thanks again, Andrea. On 24 Sep 2004, at 09:15, Michael Schindler wrote: > Hello, > > On 23.09.04, Andrea Riciputi wrote: >> How can I get a box around the plot keys or around a piece of text >> that >> I write onto a plot? > > The second task is easy, because the text is a canvas itself and > provides you with a bbox() method. |