Etrade Griffiths venit, vidit, dixit 2006-09-01 12:54:
> Hi
>
> seems that something doesn't like underscores in pYx text strings. This
> script
>
> ====================
> from pyx import *
>
> c = canvas.canvas()
> c.text(0, 0, "Hello world!")
> c.text(0, 2, "Hello_world!")
> c.writeEPSfile("hello")
> c.writePDFfile("hello")
> ====================
>
> gave these error messages:
[snip]
In fact, something doesn't like underscores in TeX. PyX uses TeX/LaTeX
for text boxes. The message you see is from TeX. For TeX, "_" denotes
subscripts in math mode. \_ or \textunderscore (for LaTeX) should work.
Reading up "raw strings" in the PyX FAQ is recommended for this!
Cheers,
Michael
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
PyX-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pyx-user