[pstricks] Ticklines

Herbert Voss Herbert.Voss at FU-Berlin.DE
Sun Feb 22 21:30:51 CET 2009


Poul Riis schrieb:
> I'm afraid I've asked this question once before:
> 
> In the plot below four lines are missing: two ticklines (one vertical, one
> horizontal), and two subticklines (also one vertical, one horizontal).
> Of course I can add them manually, but wouldn't it be convenient if the
> code below produced them automatically?

with arrows the last line is not drawn. Use psplot twice:

\documentclass{article}
\usepackage{pstricks-add}

\begin{document}

\begin{center}
\psset{xunit=2cm,yunit=4cm}
\begin{pspicture}(-1,0)(4.1,2)
\psaxes[xticksize=0 2, xsubticksize=1, Dx=1, Dy=1, logLines=y,
  ylogBase=10, subticks=10, xsubticks=10,tickcolor=red,
  subtickcolor=green](0,0)(4,2)
\psaxes[ticks=none,labels=none]{->}(0,0)(4,2)
\psplot[algebraic,linecolor=blue]{0}{4}{log(Euler^(-x)+Euler^(-x/4))+1}
\uput{1mm}[270]{0}(3.9,0){$t$}
\uput{1mm}[180]{0}(0,1.9){$I(t)$}
\end{pspicture}
\end{center}

\end{document}

Herbert


More information about the PSTricks mailing list