[pstricks] Dimension too large?

Michael Sharpe msharpe at ucsd.edu
Thu Jun 25 04:14:44 CEST 2009


Try the following.

\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,showorigin=false,Dy=100,ylabelFactor=00](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}


On Jun 24, 2009, at 6:58 PM, David Arnold wrote:

> But that doesn't work as this attachment shows.
>
> <pastedGraphic.tiff>
>
>
> I need the scale on the y-axis to go from 0 to 80,000 by increments  
> of 10,000.
>
>
> On Jun 24, 2009, at 5:21 PM, Michael Sharpe wrote:
>
>> 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
>>>
>>
>> _______________________________________________
>> PSTricks mailing list
>> PSTricks at tug.org
>> http://tug.org/mailman/listinfo/pstricks
>
> _______________________________________________
> PSTricks mailing list
> PSTricks at tug.org
> http://tug.org/mailman/listinfo/pstricks



More information about the PSTricks mailing list