Hello all,
I want to make a bar plot with the y values at the end of each bar. 
There is a example in the documentation. I want to rotate the labels 
using "nodes near coords align" but that dosn't work.

%---------------------------
%% Version 1 (works)
nodes near coords=\rotatebox{90}{\pgfmathprintnumber\pgfplotspointmeta},
%---------------------------
%% Version 2 (doesn't works)
every node near coord/.append style={font=\footnotesize},
nodes near coords align={rotate=90}
%---------------------------

\begin{tikzpicture}
\begin{axis}[
ylabel=$y$-Wert,
xlabel=$x$-Wert,
enlargelimits=0.15,
legend style={at={(0.5,-0.2)},
anchor=north,legend columns=-1},
ybar=5pt,% configures `bar shift'
bar width=9pt,
nodes near coords,
point meta=y * 1, % the displayed number
%% Version 1
  nodes near coords=\rotatebox{90}{\pgfmathprintnumber\pgfplotspointmeta},
%% Version 2
%every node near coord/.append style={font=\footnotesize},
%nodes near coords align={rotate=90}
]
\addplot
coordinates {(1,12) (2,23)
(3,10) (5,11) (6,13)};
\addplot
coordinates {(1,11.4) (2,19.9)
(3,11.2) (5,9.8) (6,12.4)};
\legend{Gruppe A, Gruppe B}
\end{axis}
\end{tikzpicture}

Maybe you can help me.

Best regards
Manuel

------------------------------------------------------------------------------
AppSumo Presents a FREE Video for the SourceForge Community by Eric 
Ries, the creator of the Lean Startup Methodology on "Lean Startup 
Secrets Revealed." This video shows you how to validate your ideas, 
optimize your ideas and identify your business strategy.
http://p.sf.net/sfu/appsumosfdev2dev
_______________________________________________
Pgfplots-features mailing list
Pgfplots-features@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pgfplots-features

Reply via email to