I've got a problem with the following example. I'd like to extend the width. how is this possible? (there is more data which is not included in this MWE.)
Furthermore, I try do manipulate the year dates. Which step is necessary so that it is shown as year dates?
greetings
Code: Select all
\documentclass{article}
\usepackage{pgfplots}
\begin{document}
\begin{figure}
\begin{center}
\begin{tikzpicture}
\begin{axis}[
xmin=1934, xmax=2012,
ymin=0, ymax=600,
axis lines=center,
axis on top=true,
domain=0:1,
xlabel=Year,
ylabel=Number of failed banks]
\addplot[color=red,mark=x] coordinates {
(1988, 232)
(1989, 531)
(1990, 381)
(1991, 268)
(1992, 179)
(1993, 50)
(1994, 15)
(1995, 8)
(1996, 6)
(1997, 1)
(1998, 3)
(1999, 8)
(2000, 7)
(2001, 4)
(2002, 11)
(2003, 3)
(2004, 4)
(2005, 0)
(2006, 0)
(2007, 3)
(2008, 25)
(2009, 140)
(2010, 157)
(2011, 92)
(2012, 49)
};
\end{axis}
\end{tikzpicture}
\end{center}
\end{figure}
\end{document}