Am 16.05.2018 um 17:51 schrieb Sven Schreiber:
for those using Lyx (a Latex frontend), I just noticed that the new
version (2.3.0) has support for gnuplot scripts.
I haven't really tested this myself yet,
For those also interested: yes it does work.
Some more details, especially on Windows: You cannot directly use the
gnuplot version bundled with gretl, unfortunately, see my comment in
https://www.lyx.org/trac/ticket/11148#comment:5.
Maybe some kind of link called 'gnuplot' could be created to point to
the wgnuplot.exe that comes with gretl, but I'm not sure how to do that
on Windows. (Trivial batch file?) I just installed another gnuplot
instance. On Linux I guess this isn't necessary.
And you can set Lyx's preferences yourself to recognize .plt as a
gnuplot file, and then you can just write something like "gnuplot myvar
--time-series" in your gretl script and the resulting file can indeed be
used and inserted in the Lyx file.
(Of course if a lot of raw data are kept in that gnuplot source file the
file size may be bigger than the corresponding pdf. AFAICS it makes
sense mainly if you sometimes want a different output than pdf and/or if
you are ready to edit the gnuplot source directly if changes are needed.)
hth,
sven