I have a figure drawn with pgfplots where I cite a reference in the legend. the issue I have is when I try to scale the whole figure, I noticed that the green hyper link for the reference is not scaled and inserted at the original place.
Here is an ECM with on the one hand the figure in whole size, and on the other hand the figure scaled.
\documentclass{article}
\usepackage{biblatex}
\usepackage{hyperref}
\usepackage{pgfplots}
\pgfplotsset{compat=1.5}
\addbibresource{biblatex-examples.bib}
\begin{document}
\begin{tikzpicture}
\begin{axis}
\addplot[red, domain=-3e-3:3e-3, samples=51]{exp(-x^2 / (2e-3^2)) / (1e-3 * sqrt(2*pi))};
\addlegendentry{Text \cite{aksin}}
\end{axis}
\end{tikzpicture}
%
\begin{tikzpicture}[scale=0.9]
\begin{axis}
\addplot[red, domain=-3e-3:3e-3, samples=51]{exp(-x^2 / (2e-3^2)) / (1e-3 * sqrt(2*pi))};
\addlegendentry{Text \cite{aksin}}
\end{axis}
\end{tikzpicture}
\printbibliography
\end{document}
On the linked export, we see that the second green boxed is not over the reference [1], but over the place it would have been if the figure were not scaled.
Is it possible to set the correct location for this box ?


\pgfplotsset{width=8cm}i.sstatic.net/Cbi2vuKr.png (this would also ensure a consistent font size instead of mixing them in a ransom letter style)