Now I'm plotting some ybar figures using pgfplots. I want to show the values on the ybar. However, some values are too small and I don't want to show them. The following is an example
\documentclass[tikz]{standalone}
\usepackage{pgfplots}
\pgfplotsset{compat=1.17}
\begin{document}
\begin{tikzpicture}
\begin{axis}[
ybar stacked,
nodes near coords,
% nodes near coords*={
% \ifnum \pgfplotspointmeta>0.1
% \pgfmathprintnumber{\pgfplotspointmeta}
% \fi
% },
]
\addplot table {
1 0.5
2 0.8
3 0.02
};
\addplot table {
1 0.5
2 0.2
3 0.98
};
\end{axis}
\end{tikzpicture}
\end{document}
In the above code, the ybar contains two segments. The bottom bar at x=3 is very small, and I don't want to display it. I want to use conditional option for nodes near coords as commented in the above code (the values less than 0.1 should not display), but it failed. I want to know the reason and how can I realize what I want.

