我正在使用 pgfplots 包。我尝试使用阴影轴背景。它在 .dvi 输出中工作……但是当我将其转换为 pdf 时,我看不到阴影。有人能告诉我原因吗?
我使用 TeXnicCenter 编辑器...
\documentclass{article}
\usepackage{pgfplots}
\usepackage{tikz}
\begin{document}
\pgfplotsset{compat=1.5}
\tikzset{every mark/.append style={scale=1.1}}
\begin{tikzpicture}
\begin{semilogyaxis}[axis background/.style={
shade,top color=blue!10,bottom color=white},
legend style={fill=white},
legend style={at={(0.03,0.03)},
anchor=south west},
title=Convergence Plot,
xlabel={SNR (dB)},
ylabel={Symbol error probability},
grid=major,
legend entries={A ,B ,C },
]
\addplot+[mark =square*] coordinates{
(0,0.0463972) (2.5,0.0182014) (5,0.00574787) (7.5,0.000925764) (10,0.000129722) (12.5,1e-006)
};;
\addplot+[mark=triangle*] coordinates{
(0,0.0915691) (2.5,0.0562446) (5,0.0313533) (7.5,0.0177173) (10,0.011644) (12.5,0.00576422)
};
\addplot coordinates{
(0,0.056353) (2.5,0.0283069) (5,0.0132647) (7.5,0.00345943) (10,0.000725631) (12.5,6.96066e-006)
};
\end{semilogyaxis}grid=major,
\end{tikzpicture}
\end{document}