[pstricks] Dimension too large?

David Arnold dwarnold45 at suddenlink.net
Thu Jun 25 03:58:27 CEST 2009


But that doesn't work as this attachment shows.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: pastedGraphic.tiff
Type: image/tiff
Size: 23334 bytes
Desc: not available
URL: <http://tug.org/pipermail/pstricks/attachments/20090624/08346356/attachment-0003.tiff>
-------------- next part --------------



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



More information about the PSTricks mailing list