可以创建没有标题的 \pgfplotstablenew 吗?

可以创建没有标题的 \pgfplotstablenew 吗?

我想从头创建一个 (pgfplots) 表,但是没有标题。因此,我尝试修改文档中的一个示例pgfplotstable

\documentclass{article}
\usepackage{pgfplotstable}

\begin{document}

\pgfplotstableset{
% define how the ’0’ column shall be filled:
create on use/0/.style={create col/set list={0,1,...,10}}%
}
% create a new table with 11 rows and column ’0’:
\pgfplotstablenew[header=false,columns={0}]{11}\loadedtable
% show it:
\pgfplotstabletypeset[header=false,empty cells with={---}]\loadedtable

\end{document}

...但是,这似乎0被解释为一个字符串,而不是数字,特别是因为尝试使用columns={[index]0}失败:

\!包 pgfplots 错误:抱歉,无法从表“\loadedtable@@table@name”中检索列“[index]0”。

否则,使用上面的代码,输出中将排版以下内容:

测试03.png

...并且由于打印了两次零,因此可以确认第一个实际上是一个标题。

所以,我的问题是 - 有没有办法动态创建pgfplotstable没有标题行的表格?

相关内容