[pstricks] about pst-electricfield

Kari Eloranta kari.eloranta at me.com
Sat Feb 19 15:25:06 CET 2011


I have used the pst-electricfield package to draw the field of two positive point charges. However, the code below produces
a line connecting the two charges. I do not think that it should be like that, but more like in http://dev.physicslab.org/Document.aspx?doctype=3&filename=Electrostatics_PointChargesElectricFields.xml.

Am I mistaken? If I am not, is there a way of correcting it?

Best regards,
  Kari

\begin{center}
\begin{pspicture*}(-4,-3)(4,3)
 \psframe*[linecolor=green!20](-4,-3)(4,3)
 \psgrid[subgriddiv=0,gridcolor=lightgray,griddots=10]
 \psElectricfield[Q={[2 -2 0][2 2 0]}]
 \rput[0](-2,0){\large{$+$}} \rput[0](2,0){\large{$+$}}
\end{pspicture*}\label{fig:twoEqPointCharges}\caption{The electric field of two equal positive point charges.}
\end{center}
***************************************
Kari Eloranta
Ketunpolku 1
40400 Jyväskylä
Puh: +358 40 586 7654





-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/pstricks/attachments/20110219/f66f3824/attachment.html>


More information about the PSTricks mailing list