%20%E3%82%92%E3%83%97%E3%83%AD%E3%83%83%E3%83%88%E3%81%97%E3%81%A6%E3%81%84%E3%81%BE%E3%81%99%E3%80%82%E3%82%A8%E3%83%A9%E3%83%BC%3A%20%E6%8C%BF%E5%85%A5%E3%81%95%E3%82%8C%E3%81%9F%20%5Cendcsname%20%E3%81%8C%E3%81%82%E3%82%8A%E3%81%BE%E3%81%9B%E3%82%93.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彼の調査結果を明らかにすることができる。