[pstricks] Using pscoil/pszigzag along arc

John Smith latexpst at gmail.com
Wed Apr 30 06:25:43 CEST 2008


Thanks Herbert.

On 4/29/08, Herbert Voss <Herbert.Voss at fu-berlin.de> wrote:
>
> John Smith schrieb:
> > I would like to draw a coil or zizgag along a specified circular arc of
> some
> > radius and start and end angle similar to psarc. Does anyone know how to
> do
> > this?
>
> \documentclass[12pt,a4paper]{article}
> \usepackage{pst-plot}
>
> \begin{document}
>
> \def\Radius{3 }
> \def\radius{0.3 }
> \def\speed{40 }
>
> \pspicture(-3.5,-3.5)(3.5,3.5)
>   \parametricplot[plotpoints=1000]{0}{360}{
>   \radius t \speed mul cos mul
>   \Radius t cos mul add
>   \radius t \speed mul sin mul
>   \Radius t sin mul add
> }
> \endpspicture
>
> \pspicture(-3.5,-3.5)(3.5,3.5)
>   \parametricplot[plotpoints=1000]{100}{330}{
>   \radius t \speed mul cos mul
>   \Radius t cos mul add
>   \radius t \speed mul sin mul
>   \Radius t sin mul add
> }
> \endpspicture
>
> \end{document}
>
>
> Herbert
> _______________________________________________
> PSTricks mailing list
> PSTricks at tug.org
> http://tug.org/mailman/listinfo/pstricks
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://tug.org/pipermail/pstricks/attachments/20080430/468f917e/attachment.html 


More information about the PSTricks mailing list