[pstricks] Dimension too large?

Herbert Voss Herbert.Voss at FU-Berlin.DE
Thu Jun 25 07:23:32 CEST 2009


David Arnold schrieb:
> Thanks, that explains it, but the code you sent doesn't label the
> y-axis. I tried:
> 
> But that returned the dimension error again, although if I hit "S" to
> scroll through tex errors, it actually works.
> 
> Any workaround?


\documentclass{article}
\usepackage{amsmath}
\usepackage{pst-bar}
\usepackage{pstricks-add}
\usepackage{filecontents}
\begin{document}

\begin{filecontents*}{HumboldtPopulation.csv}
7322,26672,78142,16194
\end{filecontents*}

\begin{center}
\psset{xunit=0.4in,yunit=0.025in}
\begin{pspicture}(-2,0)(5,80)
\psframe[fillstyle=solid,fillcolor=black!10,linestyle=solid](0,0)(5,80)
\psaxes[yticksize=0
5,ticks=y,labels=y,Dy=10,ylabelFactor=\cdot10^3](0,0)(0,0)(5,80)
\readpsbardata[header=false]{\data}{HumboldtPopulation.csv}
\psbarscale(0.001){}
\psbarchart[barstyle=blue]{\data}
\rput{90}(-1.75,40){Humboldt Population}
\end{pspicture}
\end{center}

\end{document}


Herbert


More information about the PSTricks mailing list