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}
Type,fillA,fillC,preallocA,preallocC compute,406.0,355.0,400.0,360.0 off,13700,4512,0,0 save,9.0,9.0,422.0,400 tree,19.0,16.0,43.0,65
Type,fillA,fillC,preallocA,preallocC compute,1010.0,1000,950,940 off,36000,12118.0,0,0 save,15.0,14.0,1048,890 tree,31.0,26.0,71.0,98.0
_______________________________________________ Pgfplots-features mailing list Pgfplots-features@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pgfplots-features