\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) node[circ]{} -- (3.2,1.6) node[ocirc]{};
\draw (2.6,0) to[empty diode] (2.6,1.6);
\draw (0,0) -- (3.2,0) node[ocirc]{};
\draw (3.2,1.6) to[open, v^=$V_\mathrm{out}$] (3.2,0);
% (a) I-V
\begin{axis}[sketch, at={(5.4cm,-0.4cm)}, width=5.2cm, height=3.8cm, xmin=-1, xmax=1, ymin=-0.8, ymax=0.6, xlabel={$V_x$}, ylabel={$I_x$}, title={\small (a) I--V}, title style={yshift=10pt}]
  \addplot[line width=1.4pt] coordinates {(-0.95,-0.7) (0,0) (0.95,0)};
  \draw[dim] (axis cs:-0.75,-0.55) -- (axis cs:-0.45,-0.55) -- (axis cs:-0.45,-0.33) node[midway, right, font=\small]{$1/R_1$};
\end{axis}
% (b) input-output
\begin{axis}[sketch, at={(5.4cm,-4.6cm)}, width=5.2cm, height=3.8cm, xmin=-1, xmax=1, ymin=-0.3, ymax=1, xlabel={$V_x$}, ylabel={$V_\mathrm{out}$}, title={\small (b) input--output}, title style={yshift=10pt}]
  \addplot[line width=1.4pt] coordinates {(-0.95,0) (0,0) (0.9,0.9)};
  \draw[dim] (axis cs:0.45,0.45) -- (axis cs:0.7,0.45) -- (axis cs:0.7,0.7) node[midway, right, font=\small]{1};
\end{axis}
% equivalents
\begin{scope}[yshift=-2.6cm]
\node[font=\small, align=left, anchor=east] at (-0.2,0.7) {$V_x>0$:\\diode is off};
\draw (0.6,0) to[american voltage source, l=$V_x$, invert] (0.6,1.3) to[short, i=$I_x$] (1.1,1.3) to[R, l=$R_1$] (2.5,1.3) -- (3.2,1.3) node[ocirc]{};
\draw (2.5,1.3) node[circ]{} -- (2.5,1.0) node[ocirc]{} (2.5,0.3) node[ocirc]{} -- (2.5,0) node[circ]{};
\draw (0.6,0) -- (3.2,0) node[ocirc]{};
\draw (3.2,1.3) to[open, v^=$V_\mathrm{out}$] (3.2,0);
\end{scope}
\begin{scope}[yshift=-5.0cm]
\node[font=\small, align=left, anchor=east] at (-0.2,0.7) {$V_x<0$:\\diode is on};
\draw (0.6,0) to[american voltage source, l=$V_x$, invert] (0.6,1.3) to[short, i=$I_x$] (1.1,1.3) to[R, l=$R_1$] (2.5,1.3) -- (2.5,1.0) to[short, o-o] (2.5,0.3) -- (2.5,0) -- (0.6,0);
\end{scope}
\end{circuitikz}
\end{document}
