\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.4,1.6) -- (2.8,1.6) to[empty diode, l=$D_1$] (2.8,0) -- (0,0);
% I_x = max(0, (V_x - V_D,on)/R_1)
\begin{axis}[sketch, at={(4.2cm,-0.4cm)}, width=5.2cm, height=3.6cm, xmin=-0.6, xmax=1.8, ymin=-0.2, ymax=1.1, xlabel={$V_x$}, ylabel={$I_x$}, xtick={0.7}, xticklabels={$V_\mathrm{D,on}$}]
  \addplot[line width=1.4pt] coordinates {(-0.6,0) (0.7,0) (1.75,1.0)};
  \draw[dim] (axis cs:1.3,0.57) -- (axis cs:1.55,0.57) -- (axis cs:1.55,0.81) node[midway, right, font=\small]{$1/R_1$};
\end{axis}
\node[font=\small] at (10.8,1.2) {$V_\mathrm{D,on} = 700$\,mV};
\begin{scope}[yshift=-3.4cm]
\node[font=\small] at (0.3,1.9) {$V_x < V_\mathrm{D,on}$:};
\draw (1.5,0) to[american voltage source, l=$V_x$, invert] (1.5,1.4) to[short, i={$I_x = 0$}] (2.1,1.4) to[R, l=$R_1$] (3.6,1.4) -- (3.9,1.4) to[opening switch] (3.9,0) -- (1.5,0);
\node[font=\small] at (6.2,1.9) {$V_x > V_\mathrm{D,on}$:};
\draw (7.4,0) to[american voltage source, l=$V_x$, invert] (7.4,1.4) to[short, i=$I_x$] (8.0,1.4) to[R, l=$R_1$] (9.5,1.4) -- (9.8,1.4) to[battery1, l=$V_\mathrm{D,on}$] (9.8,0) -- (7.4,0);
\end{scope}
\end{circuitikz}
\end{document}
