我正在尝试向图表添加文本。我尝试使用\node
,但不起作用。我真正想要做的是,在图表中的每个坐标处添加 Personalstärke 的具体数字。我的图表如下所示:
\begin{figure}[h!]
\centering
\begin{tikzpicture}
\pgfplotsset{width=12cm,compat=1.9}
\begin{axis}[
title={},
axis lines = left,
xlabel={Jahr},
x tick label style={/pgf/number format/.cd,%
scaled y ticks = false,
set thousands separator={},
fixed},
ylabel={Personalstärke},
y tick label style={/pgf/number format/.cd,%
scaled y ticks = false,
set thousands separator={.},
fixed},
xmin=2008, xmax=2018,
ymin=12000, ymax=13200,
xtick={0, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018},
ytick={0, 12200, 12400, 12600, 12800, 13000, 13200},
legend pos=north west,
ymajorgrids=true,
grid style=dashed,
]
\addplot[
color=blue,
mark=circle,
]
coordinates {
(2009,12288)(2010,12433)(2011,12522)(2012,12526)(2013,12416)(2014,12782)(2015,12758)(2016,12813)(2017,12920)(2018,13087)
};
\end{axis}
\end{tikzpicture}
\caption[Personalentwicklung{Personalentwicklung}
\label{fig:Personalstarke}
\end{figure}
有人能帮助我吗?