[pstricks] too many datas for readdata

Herbert Voss Herbert.Voss at FU-Berlin.DE
Sun Nov 29 19:26:07 CET 2009


Am 29.11.2009 18:15, schrieb Marco Daniel:

> I have a new problem. I am trying to use the commands readdata -
> listplot. The Problem is I have 100.000 coordinates in a file
> "data.dat". So the TeX capacity exceeded.

\documentclass{article}
\usepackage{pstricks-add}
\begin{document}

\begin{psgraph}[dx=20,Dx=20,dy=40,Dy=40,
  xlabelFactor=\cdot10^3](0,0)(0,-200)(100,200){\linewidth}{10cm}
\psplot[plotpoints=100000]{0}{100000}[12345 srand /Startwert 0 def]{
  1000 div     % x/1000
  rand 2 mod   % 0 or 1
  2 mul        % *2
  1 sub Startwert add dup /Startwert ED
  }
\end{psgraph}

\end{document}

Herbert


More information about the PSTricks mailing list