If I comment out the line with psplot, the code compiles as it should, and Yap shows it fine. (Note that I use pst-infixplot to be able to write in normal mathematical notation instead of RPN.)
Code: Select all
\documentclass[a4paper,12pt]{article}
\usepackage[latin1]{inputenc}
\usepackage[danish]{babel}
\usepackage[T1]{fontenc}
\usepackage{graphicx}
\usepackage[dvipsnames]{xcolor}
\usepackage{pstricks,pst-plot,pst-infixplot}
\begin{document}
\psset{xunit=5mm, yunit=5mm}
\begin{pspicture}(0,-5)(8,3) \psgrid
\psplot[linecolor=Blue]{0}{2}{- 0.5* 0.1/( (x-2)^2 + 0.1^2 )}
\psline[linecolor=Red](0,-1.5)(8,-1.5)
\end{pspicture}
\end{document}
I have a fully upgraded MikTeX 2.7 installation, and I use TeXnicCenter.
Am I the only one getting the error? Can anyone figure out what the problem is?
Ps. The error doesn't show up if I only plot something like
Code: Select all
\psplot[linecolor=Red]{0}{8}{-2}