# [pstricks] Axes and huge numbers

Mikel Catania mikel.catania at gmail.com
Tue Apr 7 20:43:05 CEST 2009

Hi all,

I'm plotting a function with x-values ranging from 0 to 1500000, and
y-values from 0 to 160000. The plot has to be around 12cm wide, so I set
xunit=.00008mm. The plot works fine, but only if I set "labels=none" in the
\psaxes options. The following example shows that clearly:

\documentclass{article}

\usepackage{pstricks}
\usepackage{pst-plot}

\begin{document}

\psset{unit=.00008mm,xunit=.00008mm,yunit=.0004mm}

\begin{pspicture}(0,0)(1500000,160000)
% Axes
\psaxes[Dx=250000,Dy=50000,labels=none]{->}(0,0)(1500000,160000)
% Functions
\psplot[showpoints=true,dotstyle=square*,plotpoints=15]{0}{1500000}{0.05468
% Captions
graph one}
graph two}
\end{pspicture}

\end{document}

Anytime I change the options of \psaxes to "labels=all", I get an error
"Dimension too large". I could \rput all values, but it is tedious and I'd
like to know how to make this work.