Plate and spherical capacitors, as well as dielectric medium.
Plate capacitor (3D):








Edit and compile if you like:
% Author: Izaak Neutelings (February 2020)\documentclass[border=3pt,tikz]{standalone}\usepackage{amsmath} % for \dfrac\usepackage{bm}\usepackage{physics}\usepackage{tikz,pgfplots}\usetikzlibrary{angles,quotes} % for pic (angle labels)\usetikzlibrary{decorations.markings}\usetikzlibrary{calc}\usetikzlibrary{shapes,intersections} % for path name\tikzset{>=latex} % for LaTeX arrow head\usepackage{xcolor}\colorlet{Ecol}{orange!90!black}\colorlet{EcolFL}{orange!90!black}\colorlet{veccol}{green!45!black}\colorlet{EFcol}{red!60!black}\colorlet{pluscol}{red!60!black}\colorlet{minuscol}{blue!60!black}\tikzstyle{anode}=[top color=red!20,bottom color=red!50,shading angle=20]\tikzstyle{cathode}=[top color=blue!20,bottom color=blue!40,shading angle=20]\tikzstyle{charge+}=[very thin,top color=red!80,bottom color=red!80!black,shading angle=-5]\tikzstyle{charge-}=[very thin,top color=blue!50,bottom color=blue!70!white!90!black,shading angle=10]\tikzstyle{vector}=[->,thick,veccol]\tikzstyle{normalvec}=[->,thick,blue!80!black!80]\tikzstyle{Cstyle}=[very thick,orange!90!black]\tikzstyle{EField}=[->,thick,Ecol]\tikzstyle{EField dashed}=[dashed,Ecol,line width=0.6]\tikzset{EFieldLine/.style={thick,EcolFL,decoration={markings,mark=at position #1 with {\arrow{latex}}},postaction={decorate}},EFieldLine/.default=0.5}\tikzstyle{measure}=[fill=white,midway,outer sep=2]\def\dpa{0.28}\def\dba{0.14}\def\dipole#1#2{\begin{scope}[shift={(#1)},rotate=#2]\draw[charge-] (-\dpa,0) to[out=90,in=180] (0,\dba) -- (0,-\dba) to[out=180,in=-90] cycle;
Click to download: capacitors.tex • capacitors.pdf
Open in Overleaf: capacitors.tex
Hello,
Beautiful! Congratulations for all your figures!
Looking at the figure “Plate capacitor with external field lines”, the field lines on the right, on the right of the negatively charged plate have the wrong orientation. They should point towards the plate.
Hi Thomas, thank you for pointing that out! I fixed it. Cheers!