[pstricks] \psrotate combined with \psline
robert.fischer10 at arcor.de
robert.fischer10 at arcor.de
Thu Oct 29 22:28:37 CET 2009
Hello,
\psrotate draws an arrow at the end of a \psline object?
\documentclass{minimal}
\usepackage{xkeyval}
\usepackage{pst-pdf}
\usepackage{pstricks-add}
\begin{document}
\begin{pspicture}(-0.5,-0.5)(5.5,3.5)
\psgrid[gridcolor=gray,subgridcolor=lightgray]
%Axes
\psaxes[arrowinset=0,arrowscale=1.5,labels=none,
ticks=none]{->}(0,0)(0,0)(5,3)[$x$,0][$y$,90]%
%Rotated Body
\psrotate(2.5,1.5){25}{
\psline(1.5,1.4)(1.5,1.0)(0.5,1.0)(0.5,2.0)(1.5,2.0)(1.5,1.6)
(4.7,1.6)(4.7,1.8)(5.3,1.8)(5.3,1.2)(4.7,1.2)(4.7,1.4)(1.5,1.4)}
\end{pspicture}
\end{document}
1) Produce an arrow at the end of \psline body
\psrotate(2.5,1.5){25}{
\psline(1.5,1.4)(1.5,1.0)(0.5,1.0)(0.5,2.0)(1.5,2.0)(1.5,1.6)
(4.7,1.6)(4.7,1.8)(5.3,1.8)(5.3,1.2)(4.7,1.2)(4.7,1.4)(1.5,1.4)}
2)No Arrow
\psline(1.5,1.4)(1.5,1.0)(0.5,1.0)(0.5,2.0)(1.5,2.0)(1.5,1.6)
(4.7,1.6)(4.7,1.8)(5.3,1.8)(5.3,1.2)(4.7,1.2)(4.7,1.4)(1.5,1.4)}
3)No Arrow:
\psline(4,1)(5,1)
\psrotate(2.5,1.5){25}{
\psline(1.5,1.4)(1.5,1.0)(0.5,1.0)(0.5,2.0)(1.5,2.0)(1.5,1.6)
(4.7,1.6)(4.7,1.8)(5.3,1.8)(5.3,1.2)(4.7,1.2)(4.7,1.4)(1.5,1.4)}
See also attachments for more details (picture and package versions)
Best Regards,
Robert.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: M01-pics.ps
Type: application/postscript
Size: 120858 bytes
Desc: not available
URL: <http://tug.org/pipermail/pstricks/attachments/20091029/7c4b221a/attachment-0001.ps>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: M01.log
Type: application/octet-stream
Size: 7688 bytes
Desc: not available
URL: <http://tug.org/pipermail/pstricks/attachments/20091029/7c4b221a/attachment-0001.obj>
More information about the PSTricks
mailing list