[pstricks] labelsep and rotated 'put'
Alan Ristow
ristow at ece.gatech.edu
Fri Oct 14 20:26:33 CEST 2005
If I'm not mistaken, \uput pays attention to labelsep while \rput does
not. It uses angles instead of the b, l, t, etc. specifiers so the
command would look more like this:
\uput[0]{30}(!\xA\space 0){Rotated text at A}
You can also add the labelsep explicitly:
\uput{5mm}[0]{30}(!\xA\space 0){Rotated text at A}
I haven't tested these with your code below, so they might still require
a little tweaking....
Alan
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?
>
> 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}
>
> _______________________________________________
> pstricks mailing list
> pstricks at tug.org
> http://tug.org/mailman/listinfo/pstricks
>
More information about the PSTricks
mailing list