<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="font-family: Times; "><pre style="white-space: pre-wrap; ">Dear Manuel,</pre><pre style="white-space: pre-wrap; ">Thank you very, very much. I was only hoping my problem would be solved. I am writing material for my students, and now I am able to send them the text tomorrow. What a beautiful way to start a sunny Sunday morning :-)</pre><pre style="white-space: pre-wrap; ">I modified the suggested code a bit to maintain symmetry (changed 16 to 15 in \psElectricfield).</pre><pre style="white-space: pre-wrap; "> </pre><pre><span class="Apple-style-span" style="white-space: pre-wrap;">\begin{center}
\begin{pspicture*}(-4,-4)(4,4)
 \psframe*[linecolor=green!20](-4,-4)(4,4)
 \psgrid[subgriddiv=0,gridcolor=lightgray,griddots=10]
\rput{90}(0,0){\psElectricfield[Q={[2 0 2 15][2 0 -2 15]}]}
 \rput[0](-2,0){\large{$+$}}
 \rput[0](2,0){\large{$+$}}
\end{pspicture*}
\end{center}</span></pre><pre style="white-space: pre-wrap; ">Best regards,</pre><pre style="white-space: pre-wrap; "> Kari</pre><pre style="white-space: pre-wrap; "><br></pre><pre style="white-space: pre-wrap; ">Dear Kari,

Try with this code :

\documentclass{article}
\usepackage{pst-electricfield}
\begin{document}
\begin{center}
\begin{pspicture*}(-4,-4)(4,4)
 \psframe*[linecolor=green!20](-4,-4)(4,4)
 \psgrid[subgriddiv=0,gridcolor=lightgray,griddots=10]
\rput{90}(0,0){\psElectricfield[Q={[2 0 2 16][2 0 -2 16]}]}
 \rput[0](-2,0){\large{$+$}}
 \rput[0](2,0){\large{$+$}}
\end{pspicture*}
\end{center}
\end{document} 


 Best regards,
 

M.L.

 


 

 

-----E-mail d'origine-----
De : Kari Eloranta <<a href="http://tug.org/mailman/listinfo/pstricks">kari.eloranta at me.com</a>>
A : <a href="http://tug.org/mailman/listinfo/pstricks">pstricks at tug.org</a>
Envoyé le : Samedi, 19 Février 2011 15:25
Sujet : [pstricks] about pst-electricfield




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 <a href="http://dev.physicslab.org/Document.aspx?doctype=3&filename=Electrostatics_PointChargesElectricFields.xml.">http://dev.physicslab.org/Document.aspx?doctype=3&filename=Electrostatics_PointChargesElectricFields.xml.</a>


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</pre></span><div><br></div><div><span class="Apple-style-span" style="font-size: 12px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div><br></div><div>***************************************</div><div>Kari Eloranta</div><div>Ketunpolku 1</div><div>40400 Jyväskylä</div><div>Puh: +358 40 586 7654</div></div><div><br></div></div></span><br class="Apple-interchange-newline"></div></span><br class="Apple-interchange-newline"><br class="Apple-interchange-newline">
</div>
<br></body></html>