Re: Drawing with Pgfplots from file

2011-11-10 Thread Sergey Churilov
The installation of LyX 2.0.1 solved this problem. Thank you for your support. Sergey

Re: Drawing with Pgfplots from file

2011-11-09 Thread Helge Hafting
On 08. nov. 2011 17:54, Spyros Stathopoulos wrote: The problem is not with pgfplots but with the data file. It seems that LyX cannot reference files that are mentioned in ERT using relative paths. It arises because LyX does not copy the required file over at the temporary build directory, since E

Re: Drawing with Pgfplots from file

2011-11-08 Thread Enrico Forestieri
Churilov Sergey writes: > What could be the problem here? Maybe you are using an old LyX version. You need LyX 2.0.1 for that to work. You have only to make sure that the path to the file is not explicitly relative, i.e., it doesn't start with ./ or ../ For example, any of the following will wor

Re: Drawing with Pgfplots from file

2011-11-08 Thread Spyros Stathopoulos
The problem is not with pgfplots but with the data file. It seems that LyX cannot reference files that are mentioned in ERT using relative paths. It arises because LyX does not copy the required file over at the temporary build directory, since ERT code is injected verbatim to the produced TeX

Drawing with Pgfplots from file

2011-11-08 Thread Churilov Sergey
Hi, I am using pgfplots package to draw some diagrams from LyX. The following syntax entered into TEX code works fine. \begin{tikzpicture} \begin{axis}[xlabel=Cost, ylabel=Error] \addplot[color=red,mark=x] coordinates { (2,-2.8559703) (3,-3.5301677) (4,-4.3050655) (5,-5.1413136) (6,-6.0322865) (7