Some plots of basic electric circuits. Also see the related RC and RCL diagrams, or use the “circuits” tag.
Edit and compile if you like:
% Author: Izaak Neutelings (Februari, 2020)\documentclass[border=3pt,tikz]{standalone}\usepackage{amsmath} % for \dfrac\usepackage{physics,siunitx}\usepackage{tikz,pgfplots}\usetikzlibrary{angles,quotes} % for pic (angle labels)\usetikzlibrary{decorations.markings}\tikzset{>=latex} % for LaTeX arrow head\usepackage{xcolor}\colorlet{Rcol}{green!60!black}\colorlet{myblue}{blue!70!black}\colorlet{myred}{red!70!black}\colorlet{Ecol}{orange!90!black}\tikzstyle{Rline}=[Rcol,thick]\tikzstyle{gline}=[Rcol,thick]\tikzstyle{bline}=[myblue,thick]\tikzstyle{rline}=[myred,thick]\def\xmax{4.5}\def\ymax{3}\def\tick#1#2{\draw[thick] (#1) ++ (#2:0.03*\ymax) --++ (#2-180:0.06*\ymax)}\newcommand\EMF{\mathcal{E}} %\varepsilon}\begin{document}% OHMIC RESISTORS\begin{tikzpicture}\def\a{0.16}\coordinate (O) at (0,0);\coordinate (X) at (\xmax,0);\coordinate (Y) at (0,\ymax);% AXIS\draw[<->,thick](X) node[below] {$I$} -- (O) -- (Y) node[left] {$V$};% PLOT\draw[Rline,samples=100,smooth,variable=\x,domain=0:0.98*\xmax]plot(\x,\ymax/\xmax*\x);
Click to download: electric_circuit_plots.tex • electric_circuit_plots.pdf
Open in Overleaf: electric_circuit_plots.tex