Graphics, Figures & Tablesafter export-error on this page, may not display the page

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
dor272
Posts: 1
Joined: Wed Oct 21, 2015 1:23 pm

after export-error on this page, may not display the page

Post by dor272 »

Hi,
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.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Post Reply