\documentclass[border=4pt]{standalone}
\usepackage{ga}
\input{../ee1.tikz}
\begin{document}
\begin{circuitikz}
\draw (0,0) to[american voltage source, l=$V_x$, invert] (0,1.6) to[short, i=$I_x$] (0.6,1.6) to[R, l=$R_1$] (2.2,1.6) -- (2.6,1.6) to[empty diode, l=$D_1$] (2.6,0) -- (0,0);
% I_x = V_x/R_1 for V_x > 0
\begin{axis}[sketch, at={(5.0cm,-0.6cm)}, width=5.6cm, height=4cm, xmin=-1, xmax=1, ymin=-0.2, ymax=1, xlabel={$V_x$}, ylabel={$I_x$}]
  \addplot[line width=1.4pt] coordinates {(-1,0) (0,0) (0.95,0.85)};
  \draw[dim] (axis cs:0.5,0.45) -- (axis cs:0.75,0.45) -- (axis cs:0.75,0.67) node[midway, right, font=\small]{$1/R_1$};
  \node[font=\small, anchor=west] at (axis cs:0.95,0.85) {$V_x/R_1$};
\end{axis}
\begin{scope}[shift={(4.0,-3.4)}]
\draw (0,0) to[american voltage source, l=$V_x$, invert] (0,1.3) to[short, i=$I_x$] (0.5,1.3) to[R, l=$R_1$] (1.9,1.3) -- (1.9,0.95) node[ocirc]{} (1.9,0.35) node[ocirc]{} -- (1.9,0) -- (0,0);
\node[note] at (0.95,-0.4) {$V_x < 0$};
\end{scope}
\begin{scope}[shift={(7.4,-3.4)}]
\draw (0,0) to[american voltage source, l=$V_x$, invert] (0,1.3) to[short, i=$I_x$] (0.5,1.3) to[R, l=$R_1$] (1.9,1.3) -- (1.9,0.95) to[short, o-o] (1.9,0.35) -- (1.9,0) -- (0,0);
\node[note] at (0.95,-0.4) {$V_x > 0$};
\end{scope}
\end{circuitikz}
\end{document}
