[pstricks] labelsep and rotated 'put'

Poul Riis Poul.Riis at skolekom.dk
Fri Oct 14 17:02:10 CEST 2005


A very simple question:

How can I separate a rotated label some distance from the node?
In the example below the labelsep=5mm doesn't seem to have any effect,
probably because I should use a different 'put' command. Which one and
exactly how?

Yours,
Poul Riis


\documentclass{article}
\usepackage{pst-node}
\usepackage{pstricks-add}
\pagestyle{empty}

\begin{document}

\def\xA{0}
\def\xB{200}
\psset{xunit=0.2mm,yunit=1cm}
\begin{pspicture}(-5,-5)(400,5)
\psaxes[Dx=50,Dy=1,linewidth=1pt,labels=all,%
     ticksize=-3pt 0]{->}(0,0)(-5,-0.5)(400,5)
\SpecialCoor%
\cnode*(!\xA\space 0){2pt}{A}%
\cnode*(!\xB\space 0){2pt}{B}%
\psset{labelsep=5mm}
\rput[l]{30}(!\xA\space 0){Rotated text at A}
\rput[l]{-30}(!\xB\space 0){Rotated text at B}
\end{pspicture}

\end{document}




More information about the PSTricks mailing list