Latex 使用选项[mark=none]从txt打印数据的问题

Latex 使用选项[mark=none]从txt打印数据的问题,latex,tikz,pgf,Latex,Tikz,Pgf,在多次阅读Stack OverFlow的《解决我的问题》之后,我今天在论坛上提出了我的第一个问题!:) 我使用下面的代码用Tikz绘制一条曲线 例如,如果我使用这段代码添加坐标,效果会很好 \documentclass{article} \usepackage{tikz} \usepackage{pgfplots} \begin{document} \begin{tikzpicture} \begin{axis} \addplot+ [mark=none] coordi

在多次阅读Stack OverFlow的《解决我的问题》之后,我今天在论坛上提出了我的第一个问题!:) 我使用下面的代码用Tikz绘制一条曲线

例如,如果我使用这段代码添加坐标,效果会很好

\documentclass{article}
\usepackage{tikz}
\usepackage{pgfplots}
\begin{document}

\begin{tikzpicture}
    \begin{axis}
        \addplot+ [mark=none] coordinates {(0,2.6) (1,2.5) (2,2.6)};
    \end{axis}
\end{tikzpicture}

\end{document}
但是,如果我想使用txt文件中的数据,则不会收到任何错误消息,但曲线不会绘制在图形上(我的txt文件只是由空格分隔的3列数据) 这就是此代码所发生的情况:

\documentclass{article}
\usepackage{tikz}
\usepackage{pgfplots}
\begin{document}

\begin{tikzpicture}
    \begin{axis}
        \addplot+ [mark=none] table[x index=0,y index=1]{Data/vitessewood.txt};
   \end{axis}
\end{tikzpicture}

\end{document}
通过删除“[mark=none]”,曲线显示在带有此代码的图形上。它证明代码能够读取txt文件,并且问题类似于从txt文件导入数据和使用选项[mark=none]绘制数据之间的不兼容

\documentclass{article}

\usepackage{tikz}
\usepackage{pgfplots}

\begin{document}

\begin{tikzpicture}
    \begin{axis}
        \addplot+ table[x index=0,y index=1]{Data/vitessewood.txt};
   \end{axis}
\end{tikzpicture}

\end{document}
我已经尝试使用“addplot+”或仅使用“addplot”。 我已经尝试增加厚度,以确保厚度的参数不为零

如果你有任何解决问题的办法,请随时告诉我。 我期望的结果是能够无标记地绘制数据


非常感谢!:)

请你制作一个包含编译代码片段所需的所有包的文件包,好吗?是的,我认为现在更好了,谢谢。不幸的是,代码片段仍然不可编译。除了缺少documentclass(如果需要,我可以自己添加)等明显的问题外,我们无法知道您的
Data/vitessewood.txt
的内容可能是什么,因此无法编译代码片段。感谢您帮助我正确使用堆栈溢出。我再次编辑了它,我让
数据/vitessewood.txt
因为我想这是问题的一部分,但我已经解释了它的内容。