Hi,

I have a funny problem when embedding a PyX graphics into
latex and converting the resulting dvi to pdf via dvipdfm:

  python gen_fig.py
  latex embed.tex
  dvipdfm embed
  acroread embed.pdf

then the plot has no axes labels.
Here
### gen_fig.py
from pyx import *
g = graph.graphxy(width=10)
g.plot(graph.data.function("y(x)=sin(x)", min=-1, max=1, points=1000))
g.writeEPSfile("fig")
###

and
%%%% embed.tex
\documentclass{article}
\usepackage[dvips]{graphicx}
\begin{document}
\includegraphics[width=10cm]{fig.eps}
\end{document}
%%%%

I am using:
- pyx.__version__: '0.8+'
- dvipdfm -v
  dvipdfm, version 0.13.2c, Copyright (C) 1998, 1999 by Mark A. Wicks

I have no idea if this is in any way related to the recent
thread on "Palatino font not embedded in PDF"
or if this is just a bug in dvipdfm?

If you change gen_fig.py to
%%%%%%%%%%%%%%%%%%%
from pyx import *
c = canvas.canvas()
g1 = graph.graphxy(width=10)
g1.plot(graph.data.function("y(x)=sin(x)", min=-1, max=1, points=1000))
c. insert(g1)
g2 = graph.graphxy(width=10, ypos=g1.ypos-1.2*g1.height)
g2.plot(graph.data.function("y(x)=cos(x)", min=-1, max=1, points=1000))
c. insert(g2)
c.writeEPSfile("fig")
%%%%%%%%%%%%%%%%%%%%%%
the second graph is not shown at all (in the .pdf).

The `dvips embed ;  ps2pdf embed.ps ; acroread embed.pdf `
chain works without problems...

Best, Arnd


-------------------------------------------------------
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

Reply via email to