[pstricks] Arithmetic overflow in pstricks-add

Christoph Bersch usenet at bersch.net
Wed Jun 28 09:56:57 CEST 2006


Herbert Voss wrote:
> 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}

That works, thank you!

Should read the documentation with more care :-)

Christoph




More information about the PSTricks mailing list