If I am not mistaken, the space reserved for the second data point comes from the grouping: pgfplots assumes that your two \addplot commands should be grouped together: every plot allocates some position for every processor (y tick).
If you omit this grouping, I see the following alternatives:
- accept that some bars overlap each other (might be interesting if you choose different arguments for bar width)
- determine shifts manually such that bars do not overlap (possible by adjusting 'bar shift').
- use stacked plots.
Code: Select all
\begin{tikzpicture}
\begin{semilogxaxis}[
height=4cm,
width=10cm,
xbar,
symbolic y coords={AMD Phenom II X4 955 3.2GHz,GeForce GTX 285 },
ytick=data,
enlargelimits=0.7,
]
\addplot+[bar shift=0pt] coordinates {(7,AMD Phenom II X4 955 3.2GHz) (9,GeForce GTX 285) };
\addplot+[bar shift=12pt] coordinates {(8,AMD Phenom II X4 955 3.2GHz) };
\end{semilogxaxis}
\end{tikzpicture}