[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,plotpoints=15]{0}{1500000}{0.08615 x mul 18000 add}
\psplot[showpoints=true,dotstyle=square*,plotpoints=15]{0}{1500000}{0.05468
x mul 42000 add}
% Captions
\rput[l](1000000,70000){\psline(0,2000)(100000,2000)\psdot(50000,2000)\qquad\quad
graph one}
\rput[l](1000000,50000){\psline(0,2000)(100000,2000)\psdot[dotstyle=square*](50000,2000)\qquad\quad
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.
Thanks in advance,
Mikel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://tug.org/pipermail/pstricks/attachments/20090407/18332d78/attachment.html
More information about the PSTricks
mailing list