%EB%A5%BC%20%ED%94%8C%EB%A1%9C%ED%8C%85%ED%95%A9%EB%8B%88%EB%8B%A4.%20%EC%98%A4%EB%A5%98%3A%20%5Cendcsname%EC%9D%B4%20%EB%88%84%EB%9D%BD%EB%90%98%EC%97%88%EC%8A%B5%EB%8B%88%EB%8B%A4.%20%EC%82%BD%EC%9E%85%EB%90%A8.png)
.csv 테이블을 플롯하려고 하면 다음과 같은 오류가 발생합니다(테이블 링크: https://github.com/JKhay/LaTeX) 기사에:
Missing \endcsname inserted.
<to be read again>
\penalty
l.107 ...emicolon, each nth point=10] {C1PDF.csv};
^^M
Missing \endcsname inserted.
<to be read again>
\penalty
l.107 ...emicolon, each nth point=10] {C1PDF.csv};
^^M
Package pgfplots Warning: Table 'C1PDF.csv' has non-unique column name '\penalty \@M e'.
Only the first occurence can be accessed via column names. on input line 107.
tikz 사진의 코드:
\begin{figure}[ht!]
\centering
\begin{tikzpicture}
\begin{axis}[
width=70 mm,
height=70 mm,
y label style={at={(axis description cs:-0.1,.5)},rotate=0,anchor=south},
xlabel={Displacement [nm]},
yticklabel style={/pgf/number format/.cd, fixed, fixed zerofill, precision=1, /tikz/.cd },
xticklabel style={/pgf/number format/.cd,,1000 sep={\,}, fixed, fixed zerofill, precision=0, /tikz/.cd}, scaled ticks=false,
ylabel={Load [mN]},
xmin=0, xmax=350,
ymin=0, ymax=2.7,
xtick={0,100,200,300},
ytick={0.0,0.5,1.0,1.5,2.0,2.5},
ymajorgrids=true,
grid style=dashed,
legend columns=2,
legend style={at={(0.19,0.98)},anchor=north west},
legend entries={Clinker, CH , Inner p., Outer p.},
]
\addplot [color=magenta, thick] table [x=dC, y=LC, col sep=semicolon, each nth point=10] {C1PDF.csv};
\addplot [color=green, thick] table [x=dCH, y=LCH, col sep=semicolon, each nth point=10] {C1PDF.csv};
\addplot [color=cyan, thick] table [x=dIP, y=LIP, col sep=semicolon, each nth point=10] {C1PDF.csv};
\addplot [color=red, thick] table [x=dS, y=LS, col sep=semicolon, each nth point=10] {C1PDF.csv};
\end{axis}
\end{tikzpicture}
\caption{Typical load-displacement curves.}
\label{fig:curves}
\end{figure}
107행은 다음을 가리킨다.
\addplot [color=magenta, thick] table [x=dC, y=LC, col sep=semicolon, each nth point=10] {C1PDF.csv};
기사의 머리글과 바닥글:
\documentclass{article}
\usepackage{pgfplots}
\usepackage{textcomp}
\pgfplotsset{compat=1.15}
\begin{document}
.
.
.
.
\end{document}
따라서 패키지가 누락되어서는 안 됩니다. 또한 .csv 파일은 내가 컴파일하는 기본 .tex 파일과 동일한 디렉터리에 있습니다.
제안사항이 있으신가요?
감사합니다.
답변1
대답이 아닙니다!
- 유저님의 댓글을 보려고 했는데https://tex.stackexchange.com/users/194703.
- 다음은 파일의 스크린샷입니다(https://github.com/JKhay/LaTeX, 질문 참조).
- 첫 번째 줄 앞에 '이상한' 문자가 보이지 않습니다.
- 어쩌면 사용자https://tex.stackexchange.com/users/194703그의 연구 결과를 명확히 할 수 있습니다.