[pstricks] Errors: Dimension Too Large.

Yonggang Hu xd7688 at hotmail.com
Sat May 18 09:48:53 CEST 2013


Thanks, Herbert!  Yes, it works. But there is another case.
Suppose the average value of variable  is large, but its variance is small, something like the data as follows:
 
735355.385740741 18.1
735355.417511574 18.1
735355.472222222 18.1
735355.507916667 18.1
735355.550127315 18.1
735355.592465278 18.1
735355.663148148 18.1
735355.687500000 18.5
735355.726087963 19
735355.768576389 18.2
735355.802581019 17.6
735355.849108796 16.4
735355.888182870 16.1
735355.925266204 15.6
735355.959224537 15.3
735356.013287037 15
735356.057337963 16.2
735356.096666667 16.9
735356.155127315 17.2
735356.205567130 17.8
735356.248599537 17.2
735356.273680556 16.5
735356.303576389 16.2
735356.353807870 15.4
 
 
Then, we can not use the "ylabelFactor" method to scale the data.  My code is as followings:
 
\begin{filecontents*}{tu.total}
735355.385740741 18.1
735355.417511574 18.1
735355.472222222 18.1
735355.507916667 18.1
735355.550127315 18.1
735355.592465278 18.1
735355.663148148 18.1
735355.687500000 18.5
735355.726087963 19
735355.768576389 18.2
735355.802581019 17.6
735355.849108796 16.4
735355.888182870 16.1
735355.925266204 15.6
735355.959224537 15.3
735356.013287037 15
735356.057337963 16.2
735356.096666667 16.9
735356.155127315 17.2
735356.205567130 17.8
735356.248599537 17.2
735356.273680556 16.5
735356.303576389 16.2
735356.353807870 15.4
\end{filecontents*}
%
\documentclass[a4paper,12pt]{report}
\usepackage{pst-all}
\begin{document}
\readdata{\mydata}{tu.total}
%\psset{xunit=2cm, yunit=2cm}
\pstScalePoints(1,1){735355 sub}{15 sub}
\psgraph[Ox=735355,Dx=1,Oy=15,Dy=1,labels=y]%
    {->}(0,0)(3,4){8cm}{8cm}
  \listplot[showpoints=true, linecolor=red, linewidth=1pt]{\mydata}
\endpsgraph
\end{document}

This time, I get nothing, no data are actually plotted.  What's wrong?
Thank you!
 
> From: pstricks-request at tug.org
> Subject: PSTricks Digest, Vol 124, Issue 7
> To: pstricks at tug.org
> Date: Sat, 18 May 2013 08:41:38 +0200
> 
> Send PSTricks mailing list submissions to
> 	pstricks at tug.org
> 
> To subscribe or unsubscribe via the World Wide Web, visit
> 	http://tug.org/mailman/listinfo/pstricks
> or, via email, send a message with subject or body 'help' to
> 	pstricks-request at tug.org
> 
> You can reach the person managing the list at
> 	pstricks-owner at tug.org
> 
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of PSTricks digest..."
> 
> 
> Today's Topics:
> 
>    1. Re: Errors: Dimension Too Large. (Herbert Voss)
>    2. Re: Errors: Dimension Too Large. (Herbert Voss)
> 
> 
> ----------------------------------------------------------------------
> 
> Message: 1
> Date: Sat, 18 May 2013 08:31:31 +0200
> From: Herbert Voss <Herbert.Voss at FU-Berlin.DE>
> To: <pstricks at tug.org>
> Subject: Re: [pstricks] Errors: Dimension Too Large.
> Message-ID: <51972043.8050604 at FU-Berlin.DE>
> Content-Type: text/plain; charset="ISO-8859-1"; format=flowed
> 
> Am 18.05.2013 04:38, schrieb Yonggang Hu:
> > hello,  two problems:
> > 1) I always encounter an error message with "Dimension too large" if the
> > input data is relative large ,  even for the given example on the web
> > http://tug.org/PSTricks/pst-plot/listplot1.tex. My system is Miktex, and
> > I have updated for the latest one.  Where can I find a document
> > descripting this problem in detail?
> 
> use it this way:
> 
> \begin{filecontents*}{tu.total}
> 1 55808
> 2 31989
> 3 24884
> 4 22572
> 5 19718
> 6 17792
> 7 19529
> 8 17482
> 9 15658
> 10 18048
> 11 19132
> 12 19578
> 13 16152
> 14 16303
> 15 20265
> 16 24822
> 17 15240
> 18 19434
> 19 18585
> 20 19865
> 21 22418
> 22 23840
> 23 21704
> 24 39401
> \end{filecontents*}
> %
> \documentclass[a4paper,12pt]{report}
> \usepackage{pstricks,pstricks-add}
> 
> \begin{document}
> \readdata{\mydata}{tu.total}
> \psset{llx=-1cm,lly=-0.75cm}
> \pstScalePoints(1,1){}{1e4 div}
> \psgraph[ylabelFactor=\cdot10^4,dx=5\psxunit,Dx=5]%
>      {->}(0,0)(25,6){0.375\textwidth}{0.375\textwidth}
>    \listplot[showpoints=true, linecolor=red, linewidth=1pt]{\mydata}
> \endpsgraph
> 
> \end{document}
> 
> 
> > 2) I want to plot the data with following forms into a cureve:
> >
> > 2013/05/01 10:21:15   45
> > 2013/05/01 11:24:41   13
> > ... ...
> >
> > An example data file can be found in the attachments:  data.xls.  How?
> 
> \documentclass{article}
> \usepackage{pst-plot}
> \makeatletter
> \newcounter{xVal}\setcounter{xVal}{0}
> \def\psSpecialPlot{\pst at object{psSpecialPlot}}
> \def\psSpecialPlot at i#1{\begin at SpecialObj\expandafter\psSpecialPlot at ii#1}
> \def\psSpecialPlot at ii #1{\psSpecialPlot at iii#1}
> \def\psSpecialPlot at iii#1 #2 #3 #4 #5 #6 {%
>    \stepcounter{xVal}
>    \psdot(\arabic{xVal},#6)%
>    \@ifnextchar D{\psSpecialPlot at iii}{\end at SpecialObj}%
> }
> \makeatother
> 
> \begin{document}
> 
> \readdata{\data}{listplot3.data}
> \data%% shows how the data is _internally_ represented.
> 
> \bigskip
> \psset{llx=-1cm,lly=-1cm,mathLabel=false}
> \begin{psgraph}[Dx=5,Dy=5]{->}(0,0)(20,20){10cm}{8cm}
>    \psSpecialPlot[dotsize=5pt]{\data}
> \end{psgraph}
> 
> \end{document}
> 
> You can write the values for the x axis as #2 (the date) or #4 (time)
> 
> Herbert
> 
> 
> ------------------------------
> 
> Message: 2
> Date: Sat, 18 May 2013 08:41:30 +0200
> From: Herbert Voss <Herbert.Voss at FU-Berlin.DE>
> To: <pstricks at tug.org>
> Subject: Re: [pstricks] Errors: Dimension Too Large.
> Message-ID: <5197229A.10809 at FU-Berlin.DE>
> Content-Type: text/plain; charset="iso-8859-1"; Format="flowed"
> 
> Am 18.05.2013 08:31, schrieb Herbert Voss:
> 
> attached my output oy the example with your values:
> 
> 
> > You can write the values for the x axis as #2 (the date) or #4 (time)
> 
> for example with \rput
> 
> 
> 
> Herbert
> -------------- next part --------------
> A non-text attachment was scrubbed...
> Name: xxx.png
> Type: image/png
> Size: 29644 bytes
> Desc: not available
> URL: <http://tug.org/pipermail/pstricks/attachments/20130518/e7002380/attachment.png>
> 
> ------------------------------
> 
> Subject: Digest Footer
> 
> _______________________________________________
> PSTricks mailing list
> PSTricks at tug.org
> http://tug.org/mailman/listinfo/pstricks
> 
> 
> ------------------------------
> 
> End of PSTricks Digest, Vol 124, Issue 7
> ****************************************
 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/pstricks/attachments/20130518/c27d5444/attachment.html>


More information about the PSTricks mailing list