I think I may have found an inconsistency in the way attributes are handled.
Specifically for transformations applied to text.
Here is an example script.
I apologize if the line-breaks are screwed up.
Tammo
from pyx import *
dl = 20
c = canvas.canvas()
c.stroke(path.circle(0,0,0.9))
c.stroke(path.circle(dl,0,1), [trafo.rotate( 0), trafo.translate( 0,0),
color.cmyk.Apricot]
) # as expected
c.stroke(path.circle(dl,0,1), [trafo.rotate(90), trafo.translate( 0,0),
color.cmyk.Aquamarine] ) # as expected
c.stroke(path.circle( 0,0,1.1), [trafo.rotate(90), trafo.translate(dl,0),
color.cmyk.Bittersweet] ) # as expected
c.text( 0, 0, ',')
c.text(dl, 0, ',', [trafo.rotate( 0), trafo.translate( 0,0),
color.cmyk.Apricot] ) # as
expected
c.text(dl, 0, ',', [trafo.rotate(90), trafo.translate( 0,0),
color.cmyk.Aquamarine] ) #
NOT as expected
c.text( 0, 0, '.', [trafo.rotate(90), trafo.translate(dl,0),
color.cmyk.Bittersweet] ) # as
expected
c.writeEPSfile('test')
--
Tammo Heeren, Ph.D
mailto: [EMAIL PROTECTED]
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
PyX-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pyx-user