[pstricks] labels and loglines

Herbert Voss LaTeX at zedat.fu-berlin.de
Mon Nov 13 13:55:50 CET 2006


Denis Vergès schrieb:
> Hello,
> With this code :
> \psset{yunit=10cm}
> \begin{pspicture}(13,1)
> \psaxes 
> [axesstyle=frame,logLines=y,ylogBase=10,subticks=10,xsubticks=2,xticksiz 
> e=0 1,xsubticksize=1,Dx=5,yticklinestyle=dashed](13,10)
> \uput[d](12.5,0){$t$ (heures)}
> \uput[l](-0.5,10){$q$ (mg)}
> \end{pspicture}
> 
> I want to put on the y-axis the labels 2,3,4,..., 9.
> How can I do ?

\psset{yunit=10cm}
\begin{pspicture}(13,1)
\psaxes[axesstyle=frame,logLines=y,ylogBase=10,subticks=10,xsubticks=2,
 xticksize=0 1,xsubticksize=1,Dx=5,yticklinestyle=dashed,Ox=2](13,10)
\makeatletter
\multido{\nA=2+1}{8}{%
  \rput[r](! \pst at number\pslabelsep \pst at number\psxunit div neg
             \nA\space log){\footnotesize\nA}}
\makeatother
\uput[d](12.5,0){$t$ (heures)}
\uput[l](-0.5,10){$q$ (mg)}
\end{pspicture}


Herbert




More information about the PSTricks mailing list