I often use the possibility of pgfplots to annotate my graphs by adding nodes on it based on its relative position. For a linear plot that is rather simple, after after a few guesses I find the right spot, where I want to place my annotation.
But often I work with semilogxaxis plots and it gets really tough to get where on the graph e.g. a third of my (optical) x-axis is reached, as you can see in the MWE.
I know there are ways to place nodes on exact positions on the graph, but that's usually not trivial. I'm just looking for a fast and uncomplicated way to place my nodes - using the pos=... property is unbeatable for that purpose. So I wonder if it may be possible to put a "relative grid" on top of the graph for composition.
MWE
\documentclass{article}
\usepackage{pgfplots}
\begin{document}
\begin{tikzpicture}
\begin{semilogxaxis}[
width = \linewidth,
]
\addplot {x^2}
node[pos=0.3, fill, circle=10pt, pin=135:{ annotation in graph color }] {0.5}
node[pos=0.5, fill, circle=10pt, color=red, text=black] {0.5}
node[pos=0.2, fill, circle=10pt, color=red, text=black] {0.2}
;
\end{semilogxaxis}
\end{tikzpicture}
\end{document}
Of course I could use a loop to plot multiple of the red dots to get an idea of the positions on the graph, but I wonder if there is a neater solution.





