使用外部文件输入编译独立图形

使用外部文件输入编译独立图形

我正在尝试使用 data.txt 作为 CSV 值编译以下代码。重点是它在文本中运行良好,但尝试在独立模式下执行此操作会导致 TexStudio 停止。此外,cmd 中断,代码后显示的输出

  \documentclass{standalone}
 % The following inclusions are required for the LaTeX drawing environment Tikz
 \usepackage{tikz} 
 \usepackage{pgfplots}

 \usetikzlibrary{arrows, calc, external}
 \tikzexternalize

 \usepackage[europeanresistors,americaninductors]{circuitikz}

 \begin{document}

     \begin{tikzpicture}
         \begin{axis}
          \addplot+[mark = none, solid, black] table [x=theta, y=h0, col sep=comma] {RP_16_50.txt};
         \addlegendentry{$f_0$};
          \addplot+[mark = none, dotted, black] table [x=theta, y=h1, col sep=comma] {RP_16_50.txt};
          \addlegendentry{$f_0 + f_B$};
          \addplot+[mark = none, dashed, black] table [x=theta, y=h_1, col sep=comma] {RP_16_50.txt};
\addlegendentry{$f_0 - f_B$};
\end{axis}
\end{tikzpicture}
\end{document}

CMD输出如下:

 Output written on TRY_FIELD.pdf (1 page, 21585 bytes).SyncTeX: Can't rename TRY_FIELD.synctex.gz(busy) to TRY_FIELD.synctex.gz
 Transcript written on TRY_FIELD.log.

这里面有什么问题?谢谢,

相关内容