좌표 근처의 노드는 정의되지 않은 제어 시퀀스를 제공합니다.

좌표 근처의 노드는 정의되지 않은 제어 시퀀스를 제공합니다.

다음과 같은 그래프 예가 있습니다. 노드 옆에 있는 "다시 시작" 테이블에 항목을 배치하고 싶습니다. "좌표 근처 노드"를 추가할 때까지 모든 것이 작동합니다. "정의되지 않은 제어 시퀀스 \end {축}" 및 "누락된 제어 시퀀스 삽입됨 \end{축}"이라는 오류가 많이 발생합니다.

나는 최신 pgfplogs(v1.8)를 사용하고 있는데, 이상한 부분은 coords 옵션 근처의 노드를 활성화하면 오류가 발생하지만 그래프도 올바르게 그려진다는 것입니다.

\documentclass[10pt,a4paper]{article}
\usepackage{xcolor} 
\usepackage{pgfplots}
\pgfplotsset{compat=newest}

\begin{document}
\begin{figure}
\begin{tikzpicture}
    \begin{axis}[
    % If I remove nodes near coords line everything works, if I enable it, I get errors
        nodes near coords={\label},
        cycle list name=exotic, 
        visualization depends on={value \thisrow{Restart} \as \label},  
        every node near coord/.append style={
            anchor=mid west,
            xshift=1pt,
            yshift=5pt,
            font={\footnotesize}
        },
        clip mode=individual,
        ylabel={Error (m)}, 
        xlabel={Standard Deviation (m)},
        axis x line=bottom,
        axis y line=left,
        ylabel style={font=\footnotesize},
        xlabel style={font=\footnotesize},
        yticklabel/.append style={font=\sffamily\footnotesize},
        xticklabel/.append style={font=\sffamily\footnotesize},
        ymax=11,
        ymin=-1,
        symbolic x coords={0.10, 0.20, 0.50, 0.75, 1.00, 1.25, 1.50, 1.75, 2.00, 2.50, 3.00, 3.50, 4.00, 4.50, 5.00},
        xtick=data,
        xticklabel style={
        inner sep=2pt,
            xshift=1.5pt,
            anchor=north east,
            rotate=45
        },
        x axis line style={-},      
    ]
    \pgfplotsset{cycle list shift=+5}

    \addplot+[dashed, mark options=solid,
        /pgfplots/error bars/.cd,
            x dir=none,
            y dir=both,
            error bar style={thin,solid},
            y explicit,    
        ]
    table [x={Standard Deviation (m)},y={Error (m)}, y error=Variance, col sep=comma] {
Restart,{Standard Deviation (m)},{Error (m)},Variance
4,0.10,9.580479722,0.004650518
3,0.20,7.041733905,0.000561627
4,0.50,1.07983849,0.030414248
2,0.75,0.058386362,0.025176577
3,1.00,0.532316937,0.059721487
3,1.25,5.86951615,0.360786607
3,1.50,0.586363552,0.082407842
2,1.75,9.873261494,0.029932573
3,2.00,6.352042095,1.410836942
0,2.50,0.45595227,0.157863302
1,3.00,0.251621273,0.150290522
0,3.50,0.274931276,0.173965793
0,4.00,0.198035166,0.176157261
0,4.50,0.404109133,0.29203061
0,5.00,0.237515925,0.476506476
};
    \end{axis}
\end{tikzpicture}
\end{figure}
\end{document}

이것은 내가 받은 로그의 오류 메시지이며 한동안 계속 반복됩니다.

! Undefined control sequence.
\pgfplotsaxisvisphasetransformpointmeta ...@trafo 
                                                  {\pgfplotspointmeta }\let ...
l.68     \end{axis}

The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.

Missing character: There is no 1 in font nullfont!
Missing character: There is no Y in font nullfont!
Missing character: There is no 9 in font nullfont!
Missing character: There is no . in font nullfont!
Missing character: There is no 5 in font nullfont!
Missing character: There is no 8 in font nullfont!
Missing character: There is no 0 in font nullfont!
Missing character: There is no 4 in font nullfont!
Missing character: There is no 7 in font nullfont!
Missing character: There is no 9 in font nullfont!
Missing character: There is no 7 in font nullfont!
Missing character: There is no 2 in font nullfont!
Missing character: There is no 2 in font nullfont!
Missing character: There is no e in font nullfont!
Missing character: There is no 0 in font nullfont!
Missing character: There is no ] in font nullfont!
Missing character: There is no , in font nullfont!
! Missing control sequence inserted.
<inserted text> 
                \inaccessible 
l.68     \end{axis}

Please don't say `\def cs{...}', say `\def\cs{...}'.
I've inserted an inaccessible control sequence so that your
definition will be completed without mixing me up too badly.
You can recover graciously from this error, if you're
careful; see exercise 27.2 in The TeXbook.

Missing character: There is no 4 in font nullfont!
! Undefined control sequence.
\pgfplotsaxisvisphasetransformpointmeta ...@trafo 
                                                  {\pgfplotspointmeta }\let ...
l.68     \end{axis}

The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.

Missing character: There is no 1 in font nullfont!
Missing character: There is no Y in font nullfont!
Missing character: There is no 9 in font nullfont!
Missing character: There is no . in font nullfont!
Missing character: There is no 5 in font nullfont!
Missing character: There is no 8 in font nullfont!
Missing character: There is no 0 in font nullfont!
Missing character: There is no 4 in font nullfont!
Missing character: There is no 7 in font nullfont!
Missing character: There is no 9 in font nullfont!
Missing character: There is no 7 in font nullfont!
Missing character: There is no 2 in font nullfont!
Missing character: There is no 2 in font nullfont!
Missing character: There is no e in font nullfont!
Missing character: There is no 0 in font nullfont!
Missing character: There is no ] in font nullfont!
Missing character: There is no , in font nullfont!
! Missing control sequence inserted.
<inserted text> 
                \inaccessible 
l.68     \end{axis}

답변1

오케이 문제를 해결했어요

저는 v1.8 불안정 패키지를 사용하고 있었는데, v1.8 안정 패키지를 설치한 후에는 전혀 오류가 없었습니다.

이것이 다른 사람에게 도움이 되기를 바랍니다(그러나 베타 패키지를 설치해서는 안 됩니다).

문안 인사,

관련 정보