我有以下绘图代码。我需要分别在绘图框上方和右侧放置 x 轴和 y 轴的数字。代码如下
\documentclass{standalone}
\usepackage{tikz,pgfplots,graphicx}
\begin{document}
\begin{tikzpicture}
\begin{axis}[
height=9cm,
width=9cm,
grid=major,
]
\addplot {-x^5 - 242};
\addlegendentry{model}
\addplot coordinates {
(-4.77778,2027.60977)
(-3.55556,347.84069)
(-2.33333,22.58953)
(-1.11111,-493.50066)
(0.11111,46.66082)
(1.33333,-205.56286)
(2.55556,-341.40638)
(3.77778,-1169.24780)
(5.00000,-3269.56775)
};
\addlegendentry{estimate}
\end{axis}
\end{tikzpicture}
\end{document}
但我希望情节是
我怎样才能做到这一点?