Hello,
I have a plot, generated from the two tiny data files I have attached. It basically works great, with two small issues:
* enlarge x limits seems to have only an effect on the first group plot. I also tried putting it in \nextgroupplot[here], but same effect.
* The legend contains two symbols (of the same color) for each entry, like "☐ ☐ Filling evaluation". How can I omit the second symbol?
Thanks a lot!
Florian
\begin{figure}
\centering
\ref{leg:TimingsPreallocation}
\begin{tikzpicture}
\begin{groupplot}[
group style={columns=2, y descriptions at=edge left},
ybar={0cm},
symbolic x coords={off, compute, save, tree},
xtick=data,
xticklabels={No preallocation, Explicitly computed, Computed \& saved, Spatial tree},
/pgf/bar width=9pt,
enlarge x limits=0.18, enlarge y limits={value=0.3, lower},
ymode=log,
ylabel={Time [ms]},
x tick label style={rotate=30},
ymax=40000,
legend entries={Filling evaluation, Preallocation evaluation, Filling interpolation, Preallocation interpolation},
legend to name={leg:TimingsPreallocation}, legend columns=2]
\nextgroupplot
\addplot+ table[y=fillA]{prealloc-80.csv};
\addplot+ table[y=preallocA]{prealloc-80.csv};
\addplot+ table[y=fillC]{prealloc-80.csv};
\addplot+ table[y=preallocC]{prealloc-80.csv};
\nextgroupplot
\addplot+ table[y=fillA]{prealloc-100.csv};
\addplot+ table[y=preallocA]{prealloc-100.csv};
\addplot+ table[y=fillC]{prealloc-100.csv};
\addplot+ table[y=preallocC]{prealloc-100.csv};
\end{groupplot}
\end{tikzpicture}
\end{figure}
|