[pstricks] Dimension too large?
David Arnold
dwarnold45 at suddenlink.net
Thu Jun 25 02:13:22 CEST 2009
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}
More information about the PSTricks
mailing list