I try to display on one Beamer slide a bar graph and a table with numbers taken from the same input file (to avoid repetition when copying the data). For now, I am stuck on this error message:
PGFPlots: reading {benchmarks.data}
! TeX capacity exceeded, sorry [input stack size=5000].
\@setfontsize #1#2#3->\@nomath #1
\ifx \protect \@typeset@protect \let \@curr...
l.33 \end{frame}
My data file is the folllowing:
paradigm position time
{\scriptsize \shortstack{Procedural\\(append)}} 1 53
{\scriptsize \shortstack{Procedural\\(prepend)}} 2 64
{\scriptsize Object-Oriented} 3 45
{\scriptsize Functional} 4 44
{\scriptsize List Comprehension} 5 30
And, here is a stripped down version of my LaTeX code:
\documentclass[10pt]{beamer}
\usepackage{pgfplots,pgfplotstable}
\begin{document}
\begin{frame}
\frametitle{Benchmark Results}
\begin{columns}[m]
\begin{column}{.5\textwidth}
\begin{tikzpicture}[scale=.75]
\begin{axis}[%
ybar, bar width=0.65cm,%
xmin=0.5,xmax=5.5, xtick=data,%
xticklabels from table={benchmarks.data}{paradigm},%
xticklabel style={rotate=45,anchor=north east,inner sep=0mm},%
ylabel={\Large Time (s)}, ylabel near ticks]
\addplot table [x=position,y=time] {benchmarks.data};
\end{axis}
\end{tikzpicture}
\end{column}
\begin{column}{.35\textwidth}
\pgfplotstabletypesetfile[%
every even row/.style={before row={\rowcolor{blue!15}}},
every head row/.style={before row=\toprule, after row=\midrule},
every last row/.style={after row=\bottomrule},
columns/paradigm/.style={column name={Paradigm}},
columns/position/.style={column name={Position}},
columns/time/.style={column name={Time (s)}}] {benchmarks.data}
\end{column}
\end{columns}
\end{frame}
\end{document}
The most strange things is that the bar chart is working well, but I cannot make the table compile properly.
Any help is welcome !


positioncolumn... :) – perror May 09 '13 at 11:37columns={paradigm,time}in the table and remove thepositioncolumn related options. – percusse May 09 '13 at 12:45positioncolumn that I only use to set the x-position. Oh well, I'm fine with this anyway. Thanks ! – perror May 09 '13 at 14:16x expr = \coordindex+1instead ofx=positionto use the coordinate counter. It starts from 0 so I often add one to it. – percusse May 09 '13 at 14:45