在 pgfplots 中无法识别 \input

问题描述

以下代码运行良好。但我希望在外部生成符号坐标并将它们输入到 tex 文件中(如长列表后的注释行)。这给出了一个错误,指出坐标 201101 尚未用符号坐标定义......(所有其他坐标给出类似的错误)。 知道如何解决这个问题吗?

\begin{figure}[!htbp]
    \centering
    \begin{tikzpicture}[scale=1]
    %   \pgfplotsset{every axis legend/.append style={at={(1.02,1)},anchor=north west}}
    \begin{axis}[
    symbolic x coords=  {201101,201102,201103,201104,201105,201106,201107,201108,201109,201110,201111,201112,201201,201202,201203,201204,201205,201206,201207,201208,201209,201210,201211,201212,201301,201302,201303,201304,201305,201306,201307,201308,201309,201310,201311,201312,201401,201402,201403,201404,201405,201406,201407,201408,201409,201410,201411,201412,201501,201502,201503,201504,201505,201506,201507,201508,201509,201510,201511,201512,201601,201602,201603,201604,201605,201606,201607,201608,201609,201610,201611,201612,201701,201702,201703,201704,201705,201706,201707,201708,201709,201710,201711,201712,201801,201802,201803,201804,201805,201806,201807,201808,201809,201810,201811,201812,201901,201902,201903,201904,201905,201906,201907,201908,201909,201910,201911,201912,202001,202002,202003,202004,202005,202006,202007,202008,202009,202010,202011,202012,202101,202102,202103,202104,202105,202106,202107,202108,202109,202110,202111,202112},%   symbolic x coords={\input{c:/data/dot-eu/BRdatafilesF/symco.dat}},width=12cm,height=6cm,x grid style={white!70!black},xmajorgrids,xtick={201101,201101,202101},xticklabel style={rotate=90},ymajorgrids,y grid style={white!70!black},]
    \addplot [very thick,red,mark=*,mark size=2,mark options={solid,draw=white}] table [x=Mth,y=NRegs,col sep=semicolon] {c:/data/files};
    %   \addlegendentry{New Regs}
    \end{axis}
    \end{tikzpicture}
\end{figure}

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)