[pstricks] Dimension too large?

Michael Sharpe msharpe at ucsd.edu
Thu Jun 25 02:21:26 CEST 2009


In \psaxes, change Dy to 100.

On Jun 24, 2009, at 5:13 PM, David Arnold wrote:

> Thanks, that explains it, but the code you sent doesn't label the y- 
> axis. I tried:
>
> \documentclass{article}
> \usepackage{amsmath}
> \usepackage{pst-bar}
> \usepackage{pstricks-add}
> \usepackage{filecontents}
> \begin{document}
>
> \begin{filecontents*}{HumboldtPopulation.csv}
> 7322,26672,78142,16194
> \end{filecontents*}
>
> \psset{xunit=0.4in,yunit=0.0025in}
> \begin{pspicture}(-2,0)(5,800)
> \psframe[fillstyle=solid,fillcolor=black!10,linestyle=solid](0,0) 
> (5,800)
> \psaxes[yticksize=0 5,ticks=y,labels=y,dy=100,Dy=10000](0,0)(0,0) 
> (5,800)
> \readpsbardata[header=false]{\data}{HumboldtPopulation.csv}
> \psbarscale(.01){}
> \psbarchart[barstyle=blue]{\data}
> \rput{90}(-1.25,400){Humboldt Population}
> \end{pspicture}
>
> \end{document}
>
> But that returned the dimension error again, although if I hit "S"  
> to scroll through tex errors, it actually works.
>
> Any workaround?
>
> David.
>
> On Jun 24, 2009, at 4:49 PM, Michael Sharpe wrote:
>
>> \begin{filecontents*}{HumboldtPopulation.csv}
>> 7322,26672,78142,16194
>> \end{filecontents*}
>>
>> \psset{xunit=0.4in,yunit=0.0025in}
>> \begin{pspicture}(-2,0)(5,800)
>> \psframe[fillstyle=solid,fillcolor=black!10,linestyle=solid](0,0) 
>> (5,800)
>> \psaxes[yticksize=0 5,ticks=y,labels=y,Dy=10000](0,0)(0,0)(5,800)
>> \readpsbardata[header=false]{\data}{HumboldtPopulation.csv}
>> \psbarscale(.01){}
>> \psbarchart[barstyle=blue]{\data}
>> \rput{90}(-1.25,400){Humboldt Population}
>> \end{pspicture}
>
> _______________________________________________
> PSTricks mailing list
> PSTricks at tug.org
> http://tug.org/mailman/listinfo/pstricks
>



More information about the PSTricks mailing list