[pstricks] Arithmetic overflow in pstricks-add
Herbert Voss
LaTeX at zedat.fu-berlin.de
Tue Jun 27 17:06:35 CEST 2006
Christoph Bersch wrote:
> when compiling the following document, I get the error
>
> ! Arithmetic overflow.
> <recently read> \pst at cntg
As mentioned in the documentation (!) it is sometimes
difficult to handle the values, because TeX has no
floating point values:
\documentclass{article}
\usepackage{filecontents}
\usepackage{pstricks-add}
\begin{document}
\begin{filecontents}{fft.dat}
0.000000 27161.972486
0.049991 0.000696
\end{filecontents}
\readdata{\data}{fft.dat}
\pstScalePoints(100,1){}{log}
\begin{psgraph}[arrows=->,Dx=0.01,dx=\psxunit,ylogBase=10,Oy=-5](0,-5.0)(0,-5.0)(5,4.5){12cm}{6cm}
\listplot[linecolor=red]{\data}
\end{psgraph}
\end{document}
Herbert
More information about the PSTricks
mailing list