[pstricks] [?? Probable Spam] electromagnetic waves

Juergen Gilg gilg at acrotex.net
Tue Feb 12 22:56:04 CET 2008


Hi Doris,

> hi all,
>
> is there/has anybody written an existing solution of a 3D-picture of  
> an electromagnetic wave?
>   

Is this the direction you look for? Found that as an example on the 
PSTricks website.

\documentclass{article}
\usepackage{pstricks}
\usepackage{pst-3dplot}

\begin{document}

\begin{pspicture}(-1,-5)(15,2.5)
 \psset{Alpha=20}
  \pstThreeDCoor[yMax=25]
  \parametricplotThreeD[xPlotpoints=200,%
    linecolor=blue,linewidth=1.5pt,linestyle=solid,plotstyle=curve](0,720)%
      { 0 t 180 div 6 mul t sin 2.5 mul }
  \parametricplotThreeD[xPlotpoints=200,linecolor=red,linewidth=1.5pt,%
    linestyle=solid,plotstyle=curve](0,720)%
    { t sin 2.5 mul t 180 div 6 mul 0 }
  \psset{arrows=->,arrowscale=1.5,linewidth=0.5pt}
  \parametricplotThreeD[yPlotpoints=44,linecolor=red](0,2.5)(15,720)%
    { u sin t mul u 180 div 6 mul 0 }
  \parametricplotThreeD[linecolor=blue,yPlotpoints=44](0,2.5)(0,720)%
    { 0 u 180 div 6 mul u sin t mul }
\end{pspicture}

\end{document}


Regards,

Juergen

-- 
 Jürgen Gilg
 Austr. 59
 70376 Stuttgart
-------------------------------------
 Tel       0711.59 27 88
 e-Mail    gilg at acrotex.net
 Websites  www.acrotex.net
           www.brueckenkurs-physik.de
           www.gilligan-online.de




More information about the PSTricks mailing list