\documentclass{scrartcl}

\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[ngerman]{babel}

\usepackage{graphicx}  %% required for \includegraphics

\title{Figure demo}
\author{markus schnalke}
\date{2014-05-05}

\begin{document}

\maketitle
%\tableofcontents
\listoffigures

\section{Introduction}
\label{sec:intro}

Figure~\ref{fig:callgraph} shows the \emph{callgraph} of
masqmail. It depicts which functions of the program are called
by which other function.

\begin{figure}[hbt]
\centering
\includegraphics[scale=0.4]{callgraph}
\caption{Callgraph of masqmail}
\label{fig:callgraph}
\end{figure}

\section{Discussion}
\label{sec:discussion}

See section~\ref{sec:intro}
for the introduction.

Figure~\ref{fig:washing} on page~\pageref{fig:washing} is funny.

\begin{figure}
\centering
\includegraphics[width=8cm]{waschmaschine.jpg}  %% requires pdflatex!
\caption[Washing machine]{Doing laundry makes me sick}
\label{fig:washing}
\end{figure}


\end{document}
