i'm using Lyx and Miktex both in PC and laptop.
yesterday I added graph to my document on my PC and it worked great.
this morning when I tried to open it and export to PDF with my laptop I got an error from adobe reader "an error exists on this page, Acrobat may not display the page correctly".
I tried to reinstall everything on my laptop and it's still not working.
on top of all now I tried to export to PDF again on my PC and I get the same error.
when I delete the TeX code it exports perfectly.
under Preamble:
\usepackage{pgfplots}
TeX code:
Code: Select all
\begin{tikzpicture}
\begin{axis} [xlabel=$k$, ylabel=$y(k)$ ,
legend pos=north west]
\addplot [green, line width = 1, smooth, domain=0:100] {100*1.02^x};
\legend {$y(k) = 100*1.02^k$};
\end{axis}
\end{tikzpicture}
how can I solve this?
Thanks.