在 beamer 演示中,它显示环境轴未定义,有人建议清除我的查询吗?
\begin{frame}
\begin{figure}[hbt]
\centering
\begin{tikzpicture}
\begin{axis}[
ybar stacked,
nodes near coords,
every node near coord/.append style=
{xshift=-15pt,yshift=-3pt,anchor=east,font=\footnotesize},
xbar legend,
% nodes near coords align={right},
legend pos=outer north east,
enlarge x limits={abs=1},
enlarge y limits=false,
bar width=35.5,width=10cm,height=11cm,
% x axis
xtick={1,2,3},
xticklabels={p1,p2,p3},
% y axis
ymin=0,
ylabel={Scheduling Length},
xlabel={Processors},
%yticklabels={0,10,20,30,40,50,60,70,80,90,500},
]
\addplot table [
x=index,
y=blue,
] {
index blue pink gray orange
1 40 18 07 00
2 34 36 19 00
3 09 17 09 10
};
\addplot table [
x=index,
y=pink,
] {
index blue pink gray orange
1 40 18 07 00
2 34 36 19 00
3 09 17 09 10
};
\addplot table [
x=index,
y=gray,
] {
index blue pink gray orange
1 40 18 07 00
2 34 36 19 00
3 09 17 09 10
};
\addplot table [
x=index,
y=orange,
] {
index blue pink gray orange
1 40 18 07 00
2 34 36 19 00
3 09 17 09 10
};
%\legend{First one,Second one,Third,Fourth}
\end{axis}
\end{tikzpicture}
\end{figure}
\end{frame}