Brett Calcott wrote:
Hi,
Perhaps I am missing something, but is the connector package only
intended for text boxes?
Yes. There is the "box" which applies only to text, and there is "bbox"
which applies to paths.
Michael Shindler recently helped me out of this dilemma. Here's a quote
from his response to me on this list:
(search for his name, and the subject: "bbox and connectors?"
hth,
gary
------------------------------
Yes. One is the bbox, which is a "bounding box", always a rectangle,
consisting of horizontal and vertical lines. The other is a box, that
is a container with a center and an outline path, which is at the
moment restricted to convex piecewise straight lines. boxes are a
major design element for the (near) future of PyX. They should align
automatically to each other, should be enlarged etc. At the moment
they do the alignment of axis-labels in graphs.
For connectors, it seemed natural to take the boxes as arguments.
Is it possible to convert a path-style bbox
into the kind of box that connector wants?
Sure. You initialise it with the coordinates from the bbox.
bb = (some bbox)
b = box.rect(bb.left(), bb.bottom(), bb.width(), bb.height())
and that's it
Michael.
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
PyX-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pyx-user