1

Are there any workarounds for the bug?

The "visualization depends on" function causes an error with stacked plots.

With "ybar stacked", the minimal example generates the error message

! Undefined control sequence. \pgfplots@current@point@meta ->{0Y0.0e0]},\test

I need numbers over stacked bars. These numbers must be calculated from another column.

MWE:

\documentclass{standalone}
\usepackage{pgfplots}

\begin{document}
\begin{tikzpicture}
\begin{axis}[
ybar stacked, %this doesn't work
% ybar, % this works
% stack plots=y, % this doesn't work
visualization depends on=0.5*y \as \test
]

\addplot [nodes near coords=\test] table {
0 0
1 10
2 8
};
\end{axis}
\end{tikzpicture}

\end{document}

closed as off-topic by Joseph Wright Aug 3 '14 at 16:47

  • This question does not fall within the scope of TeX, LaTeX or related typesetting systems as defined in the help center.
If this question can be reworded to fit the rules in the help center, please edit the question.

  • 1
    According to the bug tracker this is fixed but not yet released to CTAN. When it is, I guess the answer will be to update. – Joseph Wright Aug 15 '13 at 19:33
  • This question appears to be off-topic because it is about an issue which is fixed in the current release. – Joseph Wright Aug 3 '14 at 16:47

Browse other questions tagged or ask your own question.