Hello Alan,
On 14.03.06, Alan G Isaac wrote:
> When I run the script below,
> the "Series 3" label is typeset incorrectly.
> If I remove the space in the string "Series "=str(xi),
> the problem goes away. But there remains a
> bounding box problem. The size is for ease
> of viewing; it is not relevant to the problems.)
>
> Cheers,
> Alan Isaac
>
> ==================================================
> from pyx import *
> c = canvas.canvas()
> c.stroke(text.text(0,0,"Series 3",[text.size(3)]))
[ snip ]
The problem is that you _stroke_ the text. PyX doesn't complain
about that (maybe it should), but it produces the wrong output.
Either insert the text object or use the text method of
the canvas directly.
Jörg
-------------------------------------------------------
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