[pstricks] Label every other tick

Herbert Voss Herbert.Voss at FU-Berlin.DE
Sun May 10 23:49:55 CEST 2009


dwarnold45 at suddenlink.net schrieb:

> Is there an easy way to label every other tick mark with \psaxes?
> 
> That is, I want ticks at 1, 2, 3, 4, 5, and 6, but I want labels only at 2, 4, and 6, and no labels at the ticks 1, 3, and 5.

draw the axis twice or use pstricks-add


\documentclass{minimal}
\usepackage{pst-plot}
\begin{document}

Without pstricks-add

\begin{pspicture}(-1,-1)(6,6)
\psaxes[labels=none](6,6)
\psaxes[showorigin=false,ticks=none,Dx=2,Dy=2](6,6)
\end{pspicture}

\end{document}

\documentclass{minimal}
\usepackage{pstricks-add}
\begin{document}

With pstricks-add:

\begin{pspicture}(-1,-1)(6,6)
\psaxes[showOriginTick=false,showorigin=false,Dx=2,Dy=2,subticks=2](6,6)
\end{pspicture}

\end{document}


Herbert


More information about the PSTricks mailing list