How to draw an arrow from a position on a pgf-plot to the formula in the main text?
In my MWE I try to draw an arrows from node on picture to tikzmark in formula. I thought, it would to be a simple way, but I don't understand where I have a fundamental error
\documentclass[]{article}
\usepackage{amsmath}
\usepackage{pgfplots, tikz}
\tikzstyle{na} = [baseline=-.5ex]
\usetikzlibrary{arrows,shapes}
\usetikzlibrary{tikzmark}
\begin{document}
\begin{align*}
\psi_{STO}\tikzmark{1} &\qquad \psi_{GTO}\tikzmark{2}
\end{align*}
\begin{tikzpicture}[>=latex, scale=0.8]
\begin{axis}[axis lines=left, xlabel=$r$,ylabel=$\psi$]
\addplot[cyan, domain={0:4}] {exp(-x)} node[pos=0.1] (n1) {};
\addplot[red, domain={0:4}, smooth] {exp(-x^2)} node[pos=0.1] (n2) {};
\end{axis}
\end{tikzpicture}
\begin{tikzpicture}[remember picture, overlay, bend left=45, -latex, blue]
\draw (n1) to (pic cs:1);
\draw (n2) to (pic cs:2);
\end{tikzpicture}
\end{document}



