我怎样才能忽略输入表的第一行?

我怎样才能忽略输入表的第一行?

我怎样才能忽略表格的这一部分(输入)

Component: sigX

X-Achse:
clasWidth = 1.2
borderDown = -335.4
maxClas = 200

Y-Achse:
clasWidth = 1.2
borderDown = 0
maxClas = 200

我的图表数据应从这里开始(在此行):平均范围计数

\documentclass{article}

\usepackage{pgfplots}

\begin{document}

\begin{tikzpicture}
\begin{axis}[enlargelimits=0.2,colorbar,
    view={0}{90}  % view the plot from the top
]
\addplot3[
    scatter,mark=diamond*,only marks,
    point meta=\thisrow{count},
    z buffer=sort  
]
table {
Component: sigX

X-Achse:
clasWidth = 1.2
borderDown = -335.4
maxClas = 200

Y-Achse:
clasWidth = 1.2
borderDown = 0
maxClas = 200

mean    range   count 
-220.8  228 50045
-222    201.6   50045
-220.2  198 200176
-224.4  196.8   200176
-220.8  192 200176
-221.4  190.8   50044
-226.2  176.4   200176
-199.2  156 50044
-201.6  153.6   50045
-219    147.6   50044
-252.6  133.2   50044
-210    129.6   200176
-250.8  127.2   50044
};
\end{axis}
\end{tikzpicture}

\end{document}

答案1

密钥skip first n可以做到这一点。使用\addplot [...] table [skip first n=12,x=mean,y=range] {...

\documentclass{article}

\usepackage{pgfplots}

\begin{document}

\begin{tikzpicture}
\begin{axis}[enlargelimits=0.2,colorbar,
    view={0}{90}  % view the plot from the top
]
\addplot3[
    scatter,mark=diamond*,only marks,
    point meta=\thisrow{count},
    z buffer=sort  
]
table [skip first n=12,x=mean,y=range] {
Component: sigX

X-Achse:
clasWidth = 1.2
borderDown = -335.4
maxClas = 200

Y-Achse:
clasWidth = 1.2
borderDown = 0
maxClas = 200

mean    range   count 
-220.8  228 50045
-222    201.6   50045
-220.2  198 200176
-224.4  196.8   200176
-220.8  192 200176
-221.4  190.8   50044
-226.2  176.4   200176
-199.2  156 50044
-201.6  153.6   50045
-219    147.6   50044
-252.6  133.2   50044
-210    129.6   200176
-250.8  127.2   50044
};
\end{axis}
\end{tikzpicture}

\end{document}

在此处输入图片描述

相关内容