[pstricks] Ticklines

Poul Riis Poul.Riis at skolekom.dk
Sun Feb 22 20:57:21 CET 2009


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?

Poul Riis



\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)(0,0)(4,2)
\psplot[algebraic,linecolor=blue]{0}{4}{log(2.7182818285^(-x)+2.7182818285^(-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}



More information about the PSTricks mailing list