%% 
%%  A DANTE-Edition example
%% 
%%  Example 23-01-5 on page 335.
%% 
%%  Copyright (C) 2011 Herbert Voss
%% 
%%  It may be distributed and/or modified under the conditions
%%  of the LaTeX Project Public License, either version 1.3
%%  of this license or (at your option) any later version.
%% 
%%  See http://www.latex-project.org/lppl.txt for details.
%% 
%% 
%% ==== 
% Show page(s) 1
%% 
\documentclass[]{article}
\pagestyle{empty}
\setlength\textwidth{201.70511pt}
\setlength\parindent{0pt}

\usepackage{pst-3d,pstricks-add,textcomp}

\begin{document}
\def\CMD#1{\texttt{\textbackslash#1}}
\begin{pspicture}(0,-0.5)(9,3)
\psline[linestyle=dashed](0,2)(9,2)
\psaxes[yAxis=false,tickstyle=bottom](9,0.01)
\def\Bar{\psframe*[linecolor=lightgray](0,0)(0.5,2)}
%
\rput(0.5,0){\Bar}
\psset{arrowscale=2,linewidth=0.1pt,tbarsize=2mm}
\psline{|<->|}(0.25,0)(0.25,2)\rput*{90}(0.25,1){\small 2cm}
%
\rput(2,0){\psTilt{30}{\Bar}}
\psarc{->}(2.2,0){2}{0}{26}\rput(4.5,0.5){30\textdegree}
\pnode(2,0.3){A}\pnode(5.3,2.25){B}
\ncline{|<->|}{A}{B}\ncput*[nrot=:U]{\small 4cm}
%
\rput(6,0){\pstilt{30}{\Bar}}
\psarc{->}(6.2,0){2}{0}{26}\rput(8.5,0.5){30\textdegree}
\pnode(6,0.3){A}\pnode(7.65,1.25){B}
\ncline{|<->|}{A}{B}\ncput*[nrot=:U]{\small 2cm}
%
\uput[90](0.5,2.3){\CMD{Bar}}
\uput[90](3.75,2.3){\CMD{psTilt\{30\}\{\textbackslash Bar\}}}
\uput[90](7.25,2.3){\CMD{pstilt\{30\}\{\textbackslash Bar\}}}
\end{pspicture}
\end{document}
