[pstricks] problem grid and axis with small units
Loïc
xlogo at free.fr
Mon Aug 6 22:16:28 CEST 2007
Hi all
Here is my problem:
First code
\documentclass[10pt]{article}
\usepackage{pstricks,pstricks-add,pst-math,pst-xkey,geometry}
\geometry{a4paper,lmargin=1cm}
\begin{document}
\psset{xunit=1.3333333333333333cm,yunit=2.666666666666666cm}
\begin{pspicture*}(-10,-5)(5,2.5)
\psgrid[subgriddiv=0,gridlabels=0,gridcolor=lightgray](0,0)(-10,-5)(5,2.5)
\psset{xunit=0.0013333333333333333cm,yunit=0.0013333333333333333cm,linewidth=0.8pt,arrowsize=3pt
2,arrowinset=0.25}
\psaxes[Dx=1000,Dy=2000,ticksize=-2pt
0,subticks=2]{->}(0,0)(-10000,-10000)(5000,5000)
\end{pspicture*}
\end{document}
And now the problem:
I divide all unit by 10.
\documentclass[10pt]{article}
\usepackage{pstricks,pstricks-add,pst-math,pst-xkey,geometry}
\geometry{a4paper,lmargin=1cm}
\begin{document}
\psset{xunit=1.3333333333333333cm,yunit=2.666666666666666cm}
\begin{pspicture*}(-10,-5)(5,2.5)
\psgrid[subgriddiv=0,gridlabels=0,gridcolor=lightgray](0,0)(-10,-5)(5,2.5)
\psset{xunit=0.00013333333333333333cm,yunit=0.00013333333333333333cm,linewidth=0.8pt,arrowsize=3pt
2,arrowinset=0.25}
\psaxes[Dx=10000,Dy=20000,ticksize=-2pt
0,subticks=2]{->}(0,0)(-100000,-100000)(50000,50000)
\end{pspicture*}
\end{document}
you will see that the grid is not exactly on the ticks of axis. Is it a
pstricks problem of computation?
Thank you for your help
Best,
Loïc
_______________________________________________
pstricks mailing list
pstricks at tug.org
http://tug.org/mailman/listinfo/pstricks
More information about the PSTricks
mailing list