I've extracted a matlotlib to a .pgf file. I'm now trying to include it in my beamer presentation.
\documentclass{beamer}
\usepackage{pgf}
\usetheme{Dresden}
\mode<presentation>{}
\title{Foo}
\begin{document}
\begin{frame}
foo!
\input{baz.pgf}
\end{frame}
\end{document}
I then run either "pdflatex pres.tex" or "xelatex pres.tex". I get a pdf of the slide, but the image does not display.
Here is the actual pgf file I'm attempting to include: http://pastebin.com/eJAEJEwg