[pstricks] Re: pst-plot problems

Herbert Voss Herbert.Voss at gmx.net
Tue Jun 15 13:55:23 CEST 2004


David Rasmussen schrieb:
> I am having problems with pst-plot. I have this .tex file:
> 
> \documentclass[a4paper,12pt]{report}
> 
> \usepackage{pst-plot}
> 
> \begin{document}
> 
> \psset{xunit=1.5cm,yunit=6cm}
> \begin{pspicture}(-0.25,-.25)(24.25,100000.15)
>    \fileplot[plotstyle=dots]{plotdata.txt}
>    \psaxes{->}(0,0)(24.10,100000.10)
> \end{pspicture}
> 
> \end{document}
> 
> The plotdata.txt file looks like this:
> 
> 1 90147
> 2 56862
> 3 44127
> 4 40698
> 5 35376
> 6 38978
> 7 46614
> 8 34532
> 9 36306
> 10 32160
> 11 38249
> 12 41998
> 13 39560
> 14 65204
> 15 49290
> 16 43270
> 17 42000
> 18 57609
> 19 47452
> 20 51323
> 21 59169
> 22 73309
> 
> I am getting this error:
> 
> ! Dimension too large.
> <recently read> \@psunit
> 
> l.8 \begin{pspicture}(-0.25,-.25)(24.25,100000.15)
> 
> What am I doing wrong here?

as Uwe wrote, you misunderstood the meaning of the units.

Herbert

\documentclass[a4paper,12pt]{report}
\usepackage{pst-plot}
\begin{document}

\def\data{
1 90147
2 56862
3 44127
4 40698
5 35376
6 38978
7 46614
8 34532
9 36306
10 32160
11 38249
12 41998
13 39560
14 65204
15 49290
16 43270
17 42000
18 57609
19 47452
20 51323
21 59169
22 73309
}
\begin{pspicture}(-0.25,-.25)(24.25,10)
    \listplot[plotstyle=dots,yunit=0.001mm]{\data}
    \psaxes[dy=1cm,Dy=10000]{->}(0,0)(24.10,10)
\end{pspicture}

\end{document}




More information about the PSTricks mailing list