# [pstricks] ticksize in pst-plot

Patrice MÉGRET Patrice.MEGRET at umons.ac.be
Sun Nov 30 10:42:52 CET 2014

Dear Herbert,

In the package pst-plot, there is the very interesting psgraph environment ad the command yticksize, xticksize to make the grid.
In the example below, my data are in the range [0, 2000] so I put the axes at (0,0)(2000,2000).
To make the grid I use xticksize=0 1600 but I is too long for tex. So I had to convert in cm that perfectly works but implies to be dependent of the y size we use. (so if you change the size, you have to recomputed the tick length)
Would it be possible to overcome the limitation without unit because this syntax is independent of the x and y size and so if change your graph size the ticks marks are still correct.

\psset{llx=-1cm,lly=-1.1cm,ury=0.7cm,labelFontSize=\scriptsize,mathLabel=false}
\begin{psgraph*}[Dx=400,Dy=400,xticksize=0 1600]{->}(0,0)(2000,2000){4cm}{2.5cm}
\end{psgraph*}

\begin{psgraph*}[Dx=400,Dy=400,xticksize=0 2cm]{->}(0,0)(2000,2000){4cm}{2.5cm}
\end{psgraph*}

Best regards,
Patrice

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/pstricks/attachments/20141130/4ca39f29/attachment.html>