Hi,

I have a weird problem and need a wizard to enlighten me:

Consider the following code to generate a .eps
##############
from pyx import *

circ1 = path.circle(0, 0, 0.8)
circ2 = path.rect(-1,-1, 2, 2)

pat = pattern.pattern(xstep=0.1)
p = path.line(0, 0, 1, 1)
pat.stroke(p, [style.linewidth.thin])

c = canvas.canvas()
c.fill(circ2, [color.rgb.blue, pat])
c.fill(circ1, [color.rgb.white])
c.stroke(circ1, [color.rgb(0.0,0.0,0.8),style.linewidth.Thick ])
c.writeEPSfile("circle_boundary")
##############

Everything looks fine to me with `gv circle_boundary.eps`
(you might have to switch `antialias` off).

I need this graphics in a presentation via latex
which is then converted to pdf.
The problem is that it takes *ages* to display this simple graphics
with either acroread or xpdf, when it is in embeded in the pdf:

%%%%%%%%%%%%%%% t.tex
% latex t ; dvips t ; gv t.ps & ; ps2pdf t.ps ;  acroread t.pdf   % takes ages
% dvipdfm t.dvi ; acroread t.pdf   % corrupted graphics
\documentclass{article}
\usepackage{graphicx}

\begin{document}
\includegraphics[width=8cm]{circle_boundary.eps}
\end{document}
%%%%%%%%%%%%%%%%%%%

Is there something which I am doing wrong?
Any ideas for a solution are very much appreciated!

Best and many thanks,

Arnd



-------------------------------------------------------
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://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
PyX-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pyx-user

Reply via email to