[pstricks] problem in log plot

Patrice MÉGRET Patrice.MEGRET at umons.ac.be
Mon Mar 4 15:27:16 CET 2013


Dear Herbert,

I have a trouble with log graphs. (I used pst-plot 1.44)

I understand subtick=10 as the number of intervals between two mains ticks thus drawing 9 subtick lines. But when I used the following code, I got 1 subtick in log graph and no in Cartesian graph. (By default subtick is 0)

\documentclass{report}
\usepackage{pst-plot}

\begin{document}
\begin{pspicture}(-1,-1)(5,5)
\psaxes[xylogBase=10,logLines=all](5,5)
\end{pspicture}
\hspace{1cm}
\begin{pspicture}(-1,-1)(5,5)
\psaxes[axesstyle=frame,ticksize=0 5](5,5)
\end{pspicture}
\end{document}


To draw 10 subticks in log graph one should use subtick=9 whereas in rectangular plot one should use subtick=9.


\documentclass{report}
\usepackage{pst-plot}

\begin{document}
\begin{pspicture}(-1,-1)(5,5)
\psaxes[xylogBase=10,logLines=all,subticks=9,subticksize=0](5,5)
\end{pspicture}
\hspace{1cm}
\begin{pspicture}(-1,-1)(5,5)
\psaxes[axesstyle=frame,ticksize=0 5,subticks=10,subticksize=0](5,5)
\end{pspicture}
\end{document}

If I looked at the example in your book (English edition, 2011), most log examples are draw with subtick=10 whereas now on the website examples it is subtick=9. So for log plit, we have to do subtick rect-1.
Moreover subticks=10,  ... 20, ... seems to draw incorrectly. By the way, in log graph setting subticksize=0 to cancel drawing has no effect.

For both kind of graphs, I have also a small trouble with (sub)tickwidth=0pt and (sub)ticklinestyle=none: the lines are still drawn.

\psset{yunit=1.5cm,xunit=3cm}
\begin{pspicture}(-1.25,-4.75)(3.25,.75)
\psaxes[xticksize=-4.5 0.5,ticklinestyle=dashed,subticks=5,xsubticksize=1,%
ysubticksize=0.75,xsubticklinestyle=none,xsubtickwidth=0pt,
subtickcolor=gray]{->}(0,0)(-1,-4)(3.25,0.5)
\end{pspicture}

I believe there is a bug in the code for log line and I would prefer to have the same behavior for rectangular and log plots.

Best regards,

Patrice




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/pstricks/attachments/20130304/220e2d7a/attachment.html>


More information about the PSTricks mailing list