[Tex/LaTex] Change \pgfplotstabletypeset font size

fontsizepgfplotstable

I have a table with strings and fixed numbers. I need to set \footnotesize only to typeset it using \pgfplotstabletypeset.

How can I change font size ?

Best Answer

Add font=\footnotesize as an option to \pgfplotstabletypeset.

\documentclass{article}
\usepackage{pgfplotstable}

\begin{document}
\pgfplotstableread{
dof error1 
4 2.5e-01 
16 6.25e-02 
64  1.5625e-02 
}\loadedtable

\pgfplotstabletypeset\loadedtable
\hspace{2cm}
\pgfplotstabletypeset[font=\footnotesize]\loadedtable
\end{document}

enter image description here