[pstricks] labelsep and rotated 'put'

Herbert Voss LaTeX at zedat.fu-berlin.de
Sat Oct 15 22:33:45 CEST 2005


Poul Riis wrote:
> 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?

use \nput[options]{pos}{node}{text}

Herbert

\documentclass{article}
\usepackage{pst-node}
\usepackage{pst-plot}
\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}%
\nput[rot=30,labelsep=1cm]{50}{A}{Rotated text at A}
\nput[rot=-30,labelsep=1cm]{-90}{B}{Rotated text at B}
\end{pspicture}

\end{document}




More information about the PSTricks mailing list