Jürgen Spitzmüller <sp...@...> writes: > > peter kint wrote: > > > These are in my preamble: > > \usepackage{pgfplots} > > \usepackage{pgf,tikz} > > \usetikzlibrary{arrows} > > \usetikzlibrary{trees} > > \usepackage{verbatim} > > Putting this in the preamble and including the tikz code from your previous > post as ERT compiles fine for me. > > What error messages do you get? Could you post an example file? > > Jürgen > >
Example (Insert>File>Child Document 'probeersel.tex') \begin{tikzpicture}[domain=0:4] \draw[very thin,color=gray] (-0.1,-1.1) grid (3.9,3.9); \draw[->] (-0.2,0) -- (4.2,0) node[right] {$x$}; \draw[->] (0,-1.2) -- (0,4.2) node[above] {$f(x)$}; \draw[color=red] plot[id=x] function{x} node[right] {$f(x) =x$}; \draw[color=blue] plot[id=sin] function{sin(x)} node[right] {$f(x) = \sin x$}; \draw[color=orange] plot[id=exp] function{0.05*exp(x)} node[right] {$f(x) = \frac{1}{20} \mathrm e^x$}; \end{tikzpicture} I get no errors, only a couple of warnings in my Latex Log(which I suspect are related): ... system(gnuplot probeersel.x.gnuplot)...disabled. Package pgf Warning: Plot data file `probeersel.x.table' not found. on input li ne 5. \openout3 = `probeersel.sin.gnuplot'. system(gnuplot probeersel.sin.gnuplot)...disabled. Package pgf Warning: Plot data file `probeersel.sin.table' not found. on input line 6. \openout3 = `probeersel.exp.gnuplot'. system(gnuplot probeersel.exp.gnuplot)...disabled. Package pgf Warning: Plot data file `probeersel.exp.table' not found. on input line 7. The output (pdflatex) contains only a grid, x-axis and y-axis, labels printed all over each other and NO CURVES. Pretty sad...:-) Thx again for answering. Peter