I'm looking for a way to change row height or width with pgfplotstables. Even in the pgfplotstables manual I cant find anything about this matter.

I found a topic about this here but the only answer was using \resizebox. I dont like this since it changes proportions of the font used with the cells.

I'm looking for a solution because every lines is very close one to another, therefore the table becomes not easly readable.

  • Just realized by using \toprule, \midrule and \bottomrule instead of \hline for the row lines, I dont have the issues with the lines being very close one to another. But still if someone has a way to change column width and row height I'll be interested. – joseldsm Oct 12 at 12:09
  • The lines are also tight if no lines are used. – joseldsm Oct 12 at 12:51
  • 1
    The \arraystretch macro is used with tabular and array. See what \def\arraystretch{2} does to \pgfplotstabletypeset. You can also add struts (e.g. \rule{0pt}{1cm}). – John Kormylo Oct 13 at 14:07
  • @JohnKormylo \def\arraystretch{2} does work for the row height. Thank you ! – joseldsm Oct 15 at 7:38

Since there is no answer to this topic, I'll answer with what I came up with.

For the row height : The solution of @JohnKormylo works perfectly for what I need : \def\arraystretch{size}, "size" being the integer parameter.

For the column width : I use the same solution I used for the basics tabular and it works great :

\newcolumntype{R}[1]{>{\raggedleft\arraybackslash }b{#1}}
\newcolumntype{L}[1]{>{\raggedright\arraybackslash }b{#1}}
\newcolumntype{C}[1]{>{\centering\arraybackslash }b{#1}}
columns/myColumnName/.style={column type=|C{1.4cm}|},

Hope it will help some beginners like me.

Your Answer


By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.