pgf-tikz / pgfplots

pgfplots - A TeX package to draw normal and/or logarithmic plots directly in TeX in two and three dimensions with a user-friendly interface and pgfplotstable - a TeX package to round and format numerical tables. Examples in manuals and/or on web site.
http://pgfplots.sourceforge.net/
198 stars 34 forks source link

Option to omit the headers in pgfplotstable #261

Closed pgf-tikz-bot closed 4 years ago

pgf-tikz-bot commented 12 years ago

Migrated from SourceForge https://sourceforge.net/p/pgfplots/feature-requests/27/ Author: cereda Timestamp: 2012-05-09 14:00:31

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

pgf-tikz-bot commented 12 years ago

Migrated from SourceForge https://sourceforge.net/p/pgfplots/feature-requests/27/#c7f0 Author: ludewich Timestamp: 2012-05-09 19:55:57

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

pgf-tikz-bot commented 12 years ago

Migrated from SourceForge https://sourceforge.net/p/pgfplots/feature-requests/27/#2936 Author: cereda Timestamp: 2012-05-09 20:00:56

Hi Christian!

Absolutely fantastic! Thank you very much for your effort.

Best wishes. :)

pgf-tikz-bot commented 12 years ago

Migrated from SourceForge https://sourceforge.net/p/pgfplots/feature-requests/27/#149e Author: ludewich Timestamp: 2012-05-09 20:02:06

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

pgf-tikz-bot commented 12 years ago

Migrated from SourceForge https://sourceforge.net/p/pgfplots/feature-requests/27/#0ea9 Author: ludewich Timestamp: 2012-05-09 20:02:07