[pstricks] too many datas for readdata

Michael Sharpe msharpe at ucsd.edu
Sun Nov 29 19:27:38 CET 2009


On Nov 29, 2009, at 9:15 AM, Marco Daniel wrote:

> Hello,
> 
> 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. 
> 
> The folling code creats the first 1000 points of the iteration which I want to plot.
> %
> \documentclass{article}
> \usepackage{fp}
> \usepackage{pstricks-add}
> \begin{document}
> \noindent
> %Startwert festlegen
> \FPadd{\Startwert}{0}{0}%
> \multido{\iA=1+1}{1000}{%
> \iA\qquad\qquad
> %Zufallszahl 0 oder 1 erzeugen
> \FPrandom\Zufallszahl\FPround{\Zufallszahl}{\Zufallszahl}{0}%
> %Zufallszahl mit 2 multiplizieren
> \FPmul{\ZErgebnis}{\Zufallszahl}{2}%
> %Zwischenwert mit 1 subtrahieren
> \FPsub{\Ergebnis}{\ZErgebnis}{1}%
> % Startwert um um Ergebniss weiter iterieren
> \FPadd{\Startwert}{\Ergebnis}{\Startwert}
> \FPround{\Startwert}{\Startwert}{0}\Startwert%
> \\}
> \end{document}

In my opinion, you are trying to force pstricks to do something that is not naturally good at---large data sets and/or floating point operations. If for some reason you wish to be able to get final output with pstricks, try generating the plot (no axes or labels) in, eg, gnuplot with output to an eps file, then import the graph to a pspicture and add the axes and labels with pstricks. 

Michael



More information about the PSTricks mailing list