Parallel plate capacitor with dipolar polarization. Adapted from https://tikz.net/capacitors. All credit to Izaak Neutelings (Feb 2020).
Edit and compile if you like:
% Parallel plate capacitor with dipolar polarization.% Adapted from https://tikz.net/capacitors.% All credit to Izaak Neutelings (Feb 2020).\documentclass[border=3pt,tikz]{standalone}\usepackage{mathtools}\usetikzlibrary{decorations.markings}\colorlet{Ecolor}{orange!90!black}\colorlet{pluscolor}{red!60!black}\colorlet{minuscolor}{blue!60!black}\tikzstyle{anode}=[top color=red!20, bottom color=red!50]\tikzstyle{cathode}=[top color=blue!20, bottom color=blue!40]\tikzstyle{charge+}=[very thin,top color=red!50, bottom color=red!80]\tikzstyle{charge-}=[very thin,top color=blue!40, bottom color=blue!70]\tikzset{EFieldLine/.style={Ecolor, decoration={markings, mark=at position #1 with {\arrow{stealth}}}, postaction={decorate}}}\def\dph{0.3} % dipole height\def\dpw{0.1} % dipole width\def\dipole#1{\begin{scope}[shift={(#1)}]\draw[charge-] (-\dph,0) to[out=90,in=180] (0,\dpw) -- (0,-\dpw) to[out=180,in=-90] cycle;\draw[charge+] ( \dph,0) to[out=90,in=0] (0,\dpw) -- (0,-\dpw) to[out= 0,in=-90] cycle;\node[scale=0.7] at (-\dph/2,0) {$-$};\node[scale=0.7] at ( \dph/2,0) {$+$};\end{scope}}\def\height{5}\def\width{3}\def\platewidth{0.5}\def\dielwidth{0.13*\width}\def\nfieldlines{6}\def\ncharges{7}\begin{document}% capacitor with dipolar polarization\begin{tikzpicture}
Click to download: plate-capacitor.tex
Open in Overleaf: plate-capacitor.tex
This file is available on tikz.netlify.app and on GitHub and is MIT licensed.
See more on the author page of Janosh Riebesell..