Edit and compile if you like:
% Author: Izaak Neutelings (July 2018)\documentclass[border=3pt,tikz]{standalone}\usepackage{amsmath}\usepackage{tikz}\usepackage{physics}\usetikzlibrary{intersections}\usetikzlibrary{decorations.markings}\usetikzlibrary{angles,quotes} % for pic\tikzset{>=latex} % for LaTeX arrow head\usepackage{xcolor}\colorlet{Ecol}{orange!90!black}\colorlet{EcolFL}{orange!80!black}\colorlet{FCol}{red!60!black}%\colorlet{charge+}{blue!80!white}\colorlet{veccol}{green!45!black}\tikzstyle{charge+}=[thin,top color=red!50,bottom color=red!90!black,shading angle=20]\tikzstyle{charge-}=[thin,top color=blue!50,bottom color=blue!80,shading angle=20]\tikzstyle{charge0}=[very thin,top color=green!80!black!50,bottom color=green!80!black,shading angle=20]%\tikzstyle{charge+}=[thin,ball color=blue!60,shading angle=-10]%\tikzstyle{charge-}=[thin,ball color=red!85,shading angle=-10]%\tikzstyle{charge0}=[thin,ball color=green!80!black!80,shading angle=-10]\tikzstyle{O}=[top color=red!60,bottom color=red!90!black,shading angle=10]\tikzstyle{H}=[top color=white,bottom color=white!90!black,shading angle=10]\tikzstyle{force}=[->,very thick,FCol]\tikzstyle{vector}=[->,very thick,veccol]%\tikzstyle{EFieldLine}=[thick,EcolFL,EcolFL,decoration={markings,% mark=at position 0.5 with {\arrow{latex}}},% postaction={decorate}]\tikzset{EFieldLine/.style={thick,EcolFL,decoration={markings,mark=at position #1 with {\arrow{latex}}},postaction={decorate}},EFieldLine/.default=0.5}\begin{document}\Large
Click to download: electric_dipole.tex • electric_dipole.pdf
Open in Overleaf: electric_dipole.tex