[pstricks] msave/mrestore

Herbert Voss Herbert.Voss at alumni.TU-Berlin.DE
Fri May 9 14:36:12 CEST 2003


vin gui schrieb:
> I am wondering how to draw an elliptic arc, but with arrows.
> I saw on the archives several answers, but not handling arrows.

use parametricplot from pst-plot.

Herbert

\documentclass[12pt]{article}
\usepackage{pst-plot}
% #1 options
% #2 a
% #3 b
% #4 start angle
% #5 end angle
\newcommand{\pstEllipse}[5][]{%
     \psset{#1}
     \parametricplot{#4}{#5}{#2\space t cos mul #3\space t sin mul}}
\begin{document}
\begin{pspicture}(6,4)
     \psgrid[subgriddiv=0, griddots=5]
     \rput(3,2){%
         \pstEllipse[%
             arrows=<->,%
             arrowsize=10pt,%
             linewidth=2pt,%
             linecolor=blue]{3}{1}{40}{300}%
     }
\end{pspicture}
\end{document}




More information about the PSTricks mailing list