多条形图中的零值

多条形图中的零值

我有这个条形图,但它已经有点混乱了。但是为什么紫色和紫罗兰色条形图重叠了呢?

    \begin{tikzpicture}
\begin{axis}
[title    = Contributions per category
at LaTeX-Community.org,
xbar,
y axis line style = { opacity = 0 },
axis x line       = none,
bar width = 5pt,
tickwidth         = 0pt,
enlarge y limits  = 0.2,
enlarge x limits  = 0.02,
%nodes near coords,
symbolic y coords = {other irony, situational irony,
    verbal irony, not-ironic},
]
\addplot coordinates { (0.11,other irony) (0.24,situational irony) (0.21,verbal irony) (0.04,not-ironic) };

\addplot coordinates { (0.06,other irony) (0.21,situational irony) (0,verbal irony)
 (0.45,not-ironic)  };

\addplot coordinates { (0,other irony) (0.17,situational irony) (0,verbal irony) (0.76,not-ironic) };

\addplot coordinates {(0,other irony) (0.17,situational irony) (0,verbal irony) (0.74,not-ironic) };

\addplot coordinates {(0.15,other irony) (0.18,situational irony) (0.37,verbal irony) (0.22,not-ironic) };
\end{axis}


\end{tikzpicture}

相关内容