Am 11.06.2014 10:30, schrieb Rainer M Krug:
Yes, Rainer, I understand that. My question was -being not familiar
with python- whether one can include the data set in the python script.
I use pyxplot where this can be done by simply adding
Wolfgang Engelmann <engelm...@uni-tuebingen.de> writes:
If one wants to use a figure in PythonGraphics which needs an external
data set, how is this achieved?
What lyx does, if configured as described earlier, is simply
1) running the Python (or whatever language) script (saved in a file with
the extension pygr and e.g. the name MyScript.pygr) to generate a graphic of a
given format (lets assume
eps) with the name MyScript.eps
2) converts the MyScript.eps to .png for preview
3) converts the MyScript.eps to the format required by the output format
(e.g. .pdf for pdflatex)
The question how to use external datasets to generate the graphic is a
pure Python question and has nothing to do with LyX: if the Python script is
executed from the command line and generates a MyScript.eps graphic it
should work in LyX as well.
and afterward the data set. The advantage is, that one does not need to
keep an extra file outside the script.