[pstricks] labelsep and rotated 'put'

Poul Riis Poul.Riis at skolekom.dk
Sat Oct 15 00:26:54 CEST 2005


Alan Ristow <ristow at ece.gatech.edu> skriver:
>Sure it does!
Oh, yes....
But I would prefer to have a line from the node to the label. Isn't there
an elegant  node command which can do this?
Hopefully, it doesn't matter that there is some Danish text in the example
below....

Poul Riis


\documentclass{article}
\usepackage{geometry}
\usepackage{pstricks-add}
\pagestyle{empty}


\begin{document}
\begin{figure}[!ht]
\centering
\def\vsh{0}
\def\per{11.51}
\def\fjd{89.9938}
\def\ssh{181.7528}
\def\ejd{275.4035}
\def\vshA{365.2451}
\def\fjdA{454.2389}
\psset{xunit=0.3mm,yunit=1cm}
\begin{pspicture}(0,-0.5)(600,5)
\psline{->}(0,0)(500,0)
\SpecialCoor%
\psset{linecolor=blue}
\cnode*(!\vsh\space 0){2pt}{vsh}
\cnode*(!\fjd\space 0){2pt}{fjd}
\cnode*(!\ssh\space 0){2pt}{ssh}
\cnode*(!\ejd\space 0){2pt}{ejd}
\cnode*(!\vshA\space 0){2pt}{vshA}
\cnode*(!\fjdA\space 0){2pt}{fjdA}
\uput{5mm}[66]{66}(!\vsh\space 0){\psframebox{Vintersolhverv, 21.12.2004
13:42}}
\uput{5mm}[-66]{-66}(!\fjd\space 0){\psframebox{For\aa rsj\ae vnd\o gn,
20.03.2005 13:33}}
\uput{5mm}[66]{66}(!\ssh\space 0){\psframebox{Sommersolhverv, 21.06.2005
07:46}}
\uput{5mm}[-66]{-66}(!\ejd\space 0){\psframebox{Efter\aa rsj\ae vnd\o gn,
22.09.2005 23:23}}
\uput{5mm}[66]{66}(!\vshA\space 0){\psframebox{Vintersolhverv, 21.12.2005
19:35}}
\uput{5mm}[-66]{-66}(!\fjdA\space 0){\psframebox[linecolor=blue]{For\aa
rsj\ae vnd\o gn, 20.03.2006 19:26}}
\psset{linecolor=red}
\psbrace[linewidth=0.1pt,rot=-90,nodesep=0.2](ssh)(vsh){\small 181.7528}
\psbrace[linewidth=0.1pt,rot=90,nodesep=-0.2](fjd)(ejd){\small 186.4097}
\psbrace[linewidth=0.1pt,rot=-90,nodesep=0.2](vshA)(ssh){\small 183.4938}
\psbrace[linewidth=0.1pt,rot=90,nodesep=-0.2](ejd)(fjdA){\small 186.4097}
\psset{linecolor=green}
\cnode*(!\per\space 0){2pt}{per}
\uput{7.5mm}[-66]{-66}(!\per\space 0){\psframebox{Perihel, 02.01.2005 02}}
\psbrace[linewidth=0.1pt,rot=90,nodesep=-0.2](vsh)(per){\small 11.51}
\end{pspicture}
\end{document}




More information about the PSTricks mailing list