Hi,

I'm trying to make mathematical graphs in my Lyx documents.

In the pgf/tikz manual on p 224 is the following code/example:

    \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$};
    \end{tikzpicture}

When I include it in a box in my Lyx document (Insert>File>Child Document) I get
a very incomplete and crippled output.

How can I get this working properly??

Thx for reading.


Reply via email to