I would like to plot some data set with the ybar option of pgfplot.
But not all entries are nonzero.
The zero entries waste space between the bars and when the plot gets crowed it is not clear anymore which bar belongs to which group.
Furthermore the groups seem not centered around their description.
How do I free the space of the zero entries?
\begin{tikzpicture}
\begin{axis}[ybar,ymin=0,xtick={0,1,2,3},xticklabels={a,b,c,d}]
\addplot coordinates{ (0,3) (1,3) (2,3) (3,3) };
\addplot coordinates{ (0,2) (2,2) };
\addplot coordinates{ (0,1) (1,1) };
\end{axis}
\end{tikzpicture}

The potential solution in Consistent distance between bar plot groups of different sizes leads only to errors on my setup.
ybaroption. It seems you are having four categories (a,b,c,d) and differently many values for each of them. So instead of three data sets, it should be four (one for each category) with differently many entries. If I would try to come up with a solution for such a setting, would that be useful for you? – cryingshadow Dec 04 '15 at 14:25