\documentclass[border=4pt]{standalone}
\usepackage{ga}
\input{../fm.tikz}
\begin{document}
\begin{circuitikz}[font=\small]
\draw (0,0) to[american voltage source, l=$V_\mathrm{in}$, invert] (0,2.6);
\draw (0,2.6) to[empty diode, l=$D_1$] (1.2,2.6) to[battery1, l=$V_\mathrm{B}$] (2.4,2.6) node[circ]{} to[short, -o] (3.6,2.6);
\draw (2.4,2.6) to[R, l_=$R_1$] (2.4,0);
\draw (0,0) -- (3.6,0) node[ocirc]{}; \node at (3.6,2.15) {$+$}; \node at (3.85,1.3) {$V_\mathrm{out}$}; \node at (3.6,0.45) {$-$};
\begin{scope}[xshift=6.6cm, yshift=1.2cm]\axes{-1.8}{2.8}{-1.4}{1.8}{$V_\mathrm{in}$}{$V_\mathrm{out}$}\draw[cv] (-1.6,0) -- (0.8,0) -- (2.4,1.6); \xt{0.8}{$V_\mathrm{B}$} \draw (1.8,1.0) -- (2.1,1.0) -- (2.1,1.3); \node[right, font=\footnotesize] at (2.1,1.1) {1};\end{scope}
\end{circuitikz}
\end{document}
