[pstricks] Custom tick label and tick interval

Alan Ristow ristow at ece.gatech.edu
Wed Mar 7 17:21:10 CET 2007


erratic wrote:
> Great, Martijn, the 'unit' parameter fixed the size issue. Thank you!
> 
> So are you suggesting that I hide the labels, set dx=5 and use \rput for 
> the 0,5,10,15 labels on the x axis? I was hoping there would be an 
> easier way.

Try this (and note the use of Dx, as opposed to dx, and labels=x):

\psset{unit=8mm, showpoints=false}
\begin{pspicture}(0,0)(17,9)
   \psaxes[Dx=5,linewidth=2pt,labels=x,ticks=x,tickstyle=bottom](17,7)
   \psline[linestyle=dashed](0,0)(16,7)
   \psline (5,0)(16,2)
   \rput(16,-0.5){Years}
   \rput(1,7.5){Number}
\end{pspicture}


Alan



More information about the PSTricks mailing list