From: Joerg L. <jo...@us...> - 2004-09-24 08:20:19
|
On 24.09.04, Andrea Riciputi wrote: > 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? You still have to draw the bbox. Before doing so, you might want to enlarge it little bit, as pointed out by Michael: h.stroke(mytext.bbox().enlarged(0.1).path()) Jörg |