In the MWE below, why do not have arrows in my plot?
\documentclass[12pt, border=1pc]{standalone}
\RequirePackage{tikz}
\RequirePackage{pgfplots}
\pgfplotsset{compat=newest}
\usetikzlibrary{arrows.meta}
\usetikzlibrary{decorations.markings}
\begin{document}
\begin{tikzpicture}
\begin{axis}[axis x line=middle,
axis y line=middle,,
xtick={1.0, 3.0},
ytick={1.0, 3.0},
samples=100,
xmin=-1,xmax=4.5,
ymin=-1,ymax=4.5]
\addplot[domain={-1:4}]{x};
\addplot[domain={-1:4},
postaction={decorate,
decoration={markings,
mark=at position 2 with {\arrow[thick]{>}},
mark=at position 3 with {\arrowreversed[thick]{>}}}
}
]{((x-3)^2 * (x-1)^2) + x};
\end{axis}
\end{tikzpicture}
\end{document}



decorate. – Jasper Habicht Jan 29 '24 at 13:27