\documentclass[border=4pt]{standalone}
\usepackage{ga}
\input{../ee1.tikz}
\begin{document}
\begin{circuitikz}
\draw (2,0) node[nmos](m){};
\draw (m.G) -- ++(-0.8,0) coordinate(g);
\draw (g) to[american voltage source, l_=$V_\mathrm{G}$] ++(0,-1.6) node[ground]{};
\draw (m.S) to[short, i=$I_\mathrm{S}$] ++(0,-0.7) node[ground]{};
\draw (m.D) |- ++(1.8,0.5) coordinate(d);
\draw (d) to[short, i_=$I_\mathrm{D}$] ++(-1.0,0);
\draw (d) to[battery1, l={$V_\mathrm{D} = 0.3$\,V}] ++(0,-1.6) node[ground]{};
% I_D versus V_G
\begin{axis}[sketch, at={(6.2cm,-1.6cm)}, xmin=-0.2, xmax=1.5, ymin=-0.15, ymax=1.1, xlabel={$V_\mathrm{G}$}, ylabel={$I_\mathrm{D}$}, xtick={0.4}, xticklabels={$V_\mathrm{TH}$}]
  \addplot[black, line width=2pt, domain=0:0.4] {0};
  \addplot[gaaccent, line width=1.1pt, domain=0.4:0.85, samples=40] {0.9*(x-0.4)^2};
  \addplot[gaaccent, line width=1.1pt, densely dotted, domain=0.85:1.4, samples=40] {0.9*(x-0.4)^2};
\end{axis}
\end{circuitikz}
\end{document}
