공백 문자를 포함하고 데이터가 .txt 파일에서 나오는 기호 x 좌표가 있는 PGFPLOTS

공백 문자를 포함하고 데이터가 .txt 파일에서 나오는 기호 x 좌표가 있는 PGFPLOTS

나는 지금 반나절 동안 PGFPLOTS정상적으로 작동하는 막대 차트를 만들려고 노력하고 있습니다. 하지만 이제는 symbolic x coords"2m C"와 같은 공백 문자가 포함된 이름을 사용해야 합니다 . 이로 인해 txt 파일에서 데이터를 읽을 때 오류가 발생합니다.

여기에 글을 쓰는 것은 처음이므로 모든 형식을 올바르게 작성했으면 좋겠습니다 ;-)

도와주셔서 감사합니다!

내 코드와 데이터가 아래에 있습니다.

\begin{figure}
\centering
\begin{tikzpicture}
\begin{axis}[
width=\textwidth,
xlabel= Cases,
ymin = 0,
ymax = 52,
ybar=2,
symbolic x coords={Chips,2m C,External recycling,Sawdust,4m Ds,3m Ds,2m Ds,4m C,3m C,Offcuts,Bark extern,Residues,Bark internal,CB Dh,CB C,CB Ds,Slabs,Hardwood,Complaint},]

\addplot[draw=none] table[y index=1 {result_assortment.txt};
\addplot[draw=none] table[y index=2] {result_assortment.txt};


\legend{Loaded Runs, Empty Runs}
\end{axis}
\end{tikzpicture}
\end{figure}

그리고 데이터

FF                  Case A      Final
Chips               39245.77    37038.03
2m C                5490.63     5490.63
External recycling  2658.83     1436.96
Sawdust             4075.6      3834.34
4m Ds               5278.69     5456.15
3m Ds               7256.12     7136.97
2m Ds               1263.25     997.2
4m C                44248.02    25461.51
3m C                69276.62    20896.06
Offcuts             12709.9     12080.03
Bark extern         547         285.71
Residues            1337.05     1091.96
Bark internal       12276.22    0
CB Dh               9089.01     7886.36
CB C                15884.24    12338.54
CB Ds               4694.89     2506.33
Slabs               10553.13    6787.87
Hardwood            761.76      225.35
Complaint           1023.09     1035.27

관련 정보