I'm having trouble when trying to position a label of a circuit element in \draw
mode.
\documentclass{article}
\usepackage{tikz}
\usepackage[american, siunitx]{circuitikz}
\begin{document}
\begin{figure*}[h]
\centering
\begin{tikzpicture} \draw
(0,0) node[ocirc]{Anode} to[short,i=$i'_D$] (1,0) to[empty diode, v=$v'_D$]
(3,0) node[ocirc]{Cathode};
%\node at (0,0) [left] {Anode};
%\node at (3,0) [right] {Cathode};
\end{tikzpicture}
\caption*{Figure: Diode}
\end{figure*}
\end{document}
The only alternative I can think of is placing and labeling individual nodes (commented) but I was just wondering if there was a more efficient way. I tried node[ocirc, left]
but that wouldn't compile & I'm unsure why, is it because nodes must be dealt with differently in the draw mode?
Best regards, Matthew