[pstricks] logLines and ticklines

Herbert Voss Herbert.Voss at alumni.TU-Berlin.DE
Mon Jul 12 14:04:47 CEST 2004


jmpapy wrote:

> Actually the y-lines seem to be positionned in a strange way. Normally, 
> in log scale, they should be continuously getting closer as you go 
> towards the end of a decade (see new picture). Clearly, it is not the 
> case in the figure made with pstricks.

ok I see. This depends to the dy. In the current pstricks-add
the lines are by 0.2, 0.3, 0.4 ,0.5
But it is no problem to get the same behaviour.

I uploaded the 1.65 version, which has now two
additional options logDx=0.1 and logDy=0.1 which
define the step for the lines. You can change these
values in the usual way.

Herbert


\documentclass{report}
\usepackage{pstricks,pstricks-add}% v 1.65!
\usepackage{filecontents}% allows overwriting
\begin{filecontents}{mydata.dat}
1 0.001
2 0.01
3 0.1
4 1
5 10
6 100
7 1000
8 10000
\end{filecontents}


\begin{document}

\hspace*{-2cm}%
\psset{xyLabel={\scriptsize\sffamily}}
\begin{pspicture}(1,-3)(8,4)
   \psaxes[linewidth=0.5pt,axesstyle=frame,Ox=1,Oy=-3,ylogBase=10,
   logLines=y,tickstyle=top,ticklines=x](1,-3)(8,4)
   \readdata{\data}{mydata.dat}
   \pstScalePoints(1,1){}{log}
 
\listplot[linecolor=blue,linewidth=0.5pt,showpoints=true,dotstyle=o]{\data}
\end{pspicture}
%
\hspace{3em}
%
\begin{pspicture}(1,-3)(8,4)
 
\psaxes[linewidth=0.5pt,axesstyle=frame,Ox=1,Oy=-3,ylogBase=10,logDy=0.2,%
   logLines=y,tickstyle=top,ticklines=x](1,-3)(8,4)
   \readdata{\data}{mydata.dat}
   \pstScalePoints(1,1){}{log}
 
\listplot[linecolor=blue,linewidth=0.5pt,showpoints=true,dotstyle=o]{\data}
\end{pspicture}

\end{document}



-- 
http://TeXnik.de/
http://PSTricks.de/
ftp://ftp.dante.de/tex-archive/info/math/voss/Voss-Mathmode.pdf
http://www.dante.de/faq/de-tex-faq/
http://www.tex.ac.uk/cgi-bin/texfaq2html?introduction=yes




More information about the PSTricks mailing list