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 33 forks source link

Add possibility to select columns by index #445

Closed Krzmbrzl closed 1 year ago

Krzmbrzl commented 1 year ago

In pgfplotstable we can select the columns that ought to be typeset via the columns key. However, this key always expects column names.

If we use the header = false config, these names are assigned with indices (starting from zero), allowing us to use the columns key to select columns by index.

However, it would be nice if there was an option to always select columns by index rather than by name, even if proper column names are present.

hmenke commented 1 year ago

Screenshot from 2022-10-20 12-04-32

Krzmbrzl commented 1 year ago

Thanks :+1: