#27 Option to omit the headers in pgfplotstable

closed
None
5
2012-05-09
2012-05-09
No

Hi Christian!

First of all, thanks a lot for this awesome package!

I'd like to suggest, if possible, an option to omit the headers when using pgfplotstable.

I have an example here: http://tex.stackexchange.com/questions/54990/convert-numpy-array-into-tabular/54997#54997

Since the OP asked about simply plotting a matrix, I'd like to omit the headers. :)

Thank you!

Best wishes,

Paulo

Discussion

  • The current unstable contains an "output empty row" style which can be used here.

    The unstable manual contains an example

    \begin{stylekey}{/pgfplots/table/every head row}
    A style which is installed for each first row in the tabular. This can be used to adjust options for column names or to add extra lines/colours.

    \begin{codeexample}[]
    \pgfplotstabletypeset[
    % suppress the header row 'col1 col2 col3':
    every head row/.style={output empty row},
    col sep=comma,
    columns/col1/.style={string type,column type=r},
    columns/col2/.style={string type,column type=l},
    columns/col3/.style={string type,column type=l},
    ]
    {
    col1,col2,col3
    Col A,B,C
    The first column,E,F
    }
    \end{codeexample}
    \end{stylekey}

    Do you think that is enough here?

    I also posted an equivalent commit to tex.se

     
  • Hi Christian!

    Absolutely fantastic! Thank you very much for your effort.

    Best wishes. :)

     
  • Thanks for the fast feedback. I am glad you find it useful!

     
    • assigned_to: nobody --> ludewich
    • status: open --> closed