Thanks a lot Martin, looks great. However, for some reason the auto-pst-pdf package does not work, which is really annoying me. Anyway, it&#39;s good to know that solution, thanks! :)<br><br>Mikel <br><br><div class="gmail_quote">
On Tue, Apr 7, 2009 at 9:19 PM, Martin Chicoine <span dir="ltr">&lt;<a href="mailto:martin.chicoine@umontreal.ca">martin.chicoine@umontreal.ca</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
De : <a href="mailto:pstricks-bounces@tug.org">pstricks-bounces@tug.org</a> [mailto:<a href="mailto:pstricks-bounces@tug.org">pstricks-bounces@tug.org</a>] De la part<br>
de Mikel Catania<br>
Envoyé : 7 avril 2009 14:43<br>
À : Graphics with PSTricks<br>
Objet : [pstricks] Axes and huge numbers<br>
<div><div></div><div class="h5"><br>
&gt; Hi all,<br>
&gt;<br>
&gt; I&#39;m plotting a function with x-values ranging from 0 to 1500000, and<br>
y-values from 0 to 160000.<br>
&gt; The plot has to be around 12cm wide, so I set xunit=.00008mm. The plot<br>
works fine, but only if<br>
&gt; I set &quot;labels=none&quot; in the \psaxes options. The following example shows<br>
that clearly:<br>
&gt;<br>
&gt; \documentclass{article}<br>
&gt;<br>
&gt; \usepackage{pstricks}<br>
&gt; \usepackage{pst-plot}<br>
&gt;<br>
&gt; \begin{document}<br>
&gt;<br>
&gt; \psset{unit=.00008mm,xunit=.00008mm,yunit=.0004mm}<br>
&gt;<br>
&gt; \begin{pspicture}(0,0)(1500000,160000)<br>
&gt; % Axes<br>
&gt; \psaxes[Dx=250000,Dy=50000,labels=none]{-&gt;}(0,0)(1500000,160000)<br>
&gt; % Functions<br>
&gt; \psplot[showpoints=true,plotpoints=15]{0}{1500000}{0.08615 x mul 18000<br>
add}<br>
&gt;<br>
\psplot[showpoints=true,dotstyle=square*,plotpoints=15]{0}{1500000}{0.05468<br>
x mul 42000 add}<br>
&gt; % Captions<br>
&gt;<br>
\rput[l](1000000,70000){\psline(0,2000)(100000,2000)\psdot(50000,2000)\qquad<br>
\quad graph one}<br>
&gt;<br>
\rput[l](1000000,50000){\psline(0,2000)(100000,2000)\psdot[dotstyle=square*]<br>
(50000,2000)\qquad\quad graph two}<br>
&gt; \end{pspicture}<br>
&gt;<br>
&gt; \end{document}<br>
&gt;<br>
&gt; Anytime I change the options of \psaxes to &quot;labels=all&quot;, I get an error<br>
&quot;Dimension too large&quot;. I could \rput all values, but it is tedious and I&#39;d<br>
like to know how to make this work.<br>
&gt;<br>
&gt; Thanks in advance,<br>
&gt;<br>
&gt; Mikel<br>
<br>
</div></div>With pstricks-add you can divide everything by 1000 and use xlabelFactor and<br>
ylabelFactor. The only problem is that you have to use showorigin=false,<br>
otherwise you get &quot;0000&quot; at the origin. Maybe Herbert has a fix for that?<br>
<br>
\documentclass{article}<br>
<br>
\usepackage{pstricks-add}<br>
<br>
\begin{document}<br>
<br>
\begin{psgraph}[arrows=-&gt;,Dx=250,Dy=50,xlabelFactor={000},ylabelFactor={000}<br>
,<br>
  showorigin=false](0,0)(1500,160){11.2cm}{6.4cm}<br>
% Functions<br>
\psplot[showpoints=true,plotpoints=15]{0}{1500}{0.08615 x mul 18 add}<br>
\psplot[showpoints=true,dotstyle=square*,plotpoints=15]{0}{1500}{0.05468 x<br>
mul 42 add}<br>
% Captions<br>
\rput[l](1000,70){\psline(0,2)(100,2)\psdot(50,2)\qquad\quad graph one}<br>
\rput[l](1000,50){\psline(0,2)(100,2)\psdot[dotstyle=square*](50,2)\qquad\qu<br>
ad graph two}<br>
\end{psgraph}<br>
<br>
\vspace{1cm}<br>
<div class="im">\psset{unit=.00008mm,xunit=.00008mm,yunit=.0004mm}<br>
<br>
\begin{pspicture}(0,0)(1500000,160000)<br>
% Axes<br>
\psaxes[Dx=250000,Dy=50000,labels=none]{-&gt;}(0,0)(1500000,160000)<br>
% Functions<br>
\psplot[showpoints=true,plotpoints=15]{0}{1500000}{0.08615 x mul 18000 add}<br>
\psplot[showpoints=true,dotstyle=square*,plotpoints=15]{0}{1500000}{0.05468<br>
x mul 42000 add}<br>
% Captions<br>
\rput[l](1000000,70000){\psline(0,2000)(100000,2000)\psdot(50000,2000)\qquad<br>
\quad graph one}<br>
\rput[l](1000000,50000){\psline(0,2000)(100000,2000)\psdot[dotstyle=square*]<br>
(50000,2000)\qquad\quad graph two}<br>
\end{pspicture}<br>
<br>
<br>
\end{document}<br>
<br>
</div>_______________________________________________<br>
PSTricks mailing list<br>
<a href="mailto:PSTricks@tug.org">PSTricks@tug.org</a><br>
<a href="http://tug.org/mailman/listinfo/pstricks" target="_blank">http://tug.org/mailman/listinfo/pstricks</a><br>
</blockquote></div><br>