Based on this question, I defined my own arrow style in TikZ and expected it to work in pgfplots:
\documentclass{standalone}
\usepackage{pgfplots}
\usetikzlibrary{arrows.meta}
\pgfplotsset{compat=newest}
\tikzset{myarrow/.style={>={Computer Modern Rightarrow[round]}}}
\begin{document}
\begin{tikzpicture}
\begin{axis}[
axis lines = middle,
%axis line style={-Computer Modern Rightarrow[round]}, % works
axis line style={myarrow} % does not work
]
\addplot {x^2};
\end{axis}
\end{tikzpicture}
\end{document}
When using the myarrow style, I obtain the default arrowhead:
And when I do not use the myarrow style but instead define the arrowhead directly, I get:
What am I doing wrong?


