Hi all,
        I have been trying to make gnuplot graphics to work
directly in lyx. That is I insert the gnuplot file with the
necessary commands to make the graphic, and then lyx decides
what is the best format for that export.

        I have used a script to wrap the gnuplot call (as I
discrive in message that is in limbo, but it will reach
eventually the lyx-users as soon as the mail server here
decides to cooperate).

        This works fines for png, so that I insert the and
can see its output. My problem is when exporting for ps,
then the gnuplot file is moved to a temporary file and only
then it is converted. Since most of the time the gnuplot
files look like this:
        ------------------------
f(x)=a*x+b
## fit f(x) 'fecho.dfa' via a,b
a = 1.57519130830781
b = 0.705572828280984

plot 'fecho.dfa', f(x)
        ------------------------
        Notice that I take advantage of the the relative location
of 'fecho.dat' to this script.  When this file is moved all the
relative links are lost and this file now longer produces a
valid file.

        There are two possible solutions for this:
        1) Use absolute paths in the gnuplot file.

        2) LyX does not move the file before the convertion. The
          resulting file can be moved without problem.

        3) Do not use temporary directories.

        Is a request for 2), or something related, asking too much?

:-)
--
José

Reply via email to