In this question, I supplied a code to take an external node as a reference and I`ve got satisfying answers.
Using these answers to draw from an inline node I used the following code:
\begin{tikzpicture}
\draw [thick,-latex](0,0) -- (5,0);
\draw [thick,-latex](0,0) -- (0,4.);
\draw [thick, violet, dotted] (4,3) node (oo){} node [xshift=0cm, yshift=0cm] {oo} (oo.center-|0,0) node [xshift=0cm, yshift=0cm] {y} -| (oo.center|-0,0) node [xshift=0cm, yshift=0cm] {x};
\end{tikzpicture}
to get
When omitting naming the starting point node in this code
\draw [thick, violet, dotted] (4,3) node [xshift=0cm, yshift=0cm] {o} |- (0,0) node [xshift=0cm, yshift=0cm] {y} -| (0,0) node [xshift=0cm, yshift=0cm] {x};
I got
How can this be fixed?
Here is the full code I use:
\documentclass{beamer}
\beamertemplatenavigationsymbolsempty
\usepackage{tikz}
\usepackage{pgfplots}
\begin{document}
\begin{tikzpicture}
\draw [thick,-latex](0,0) -- (5,0);
\draw [thick,-latex](0,0) -- (0,4.);
\draw [thick, violet, dotted] (4,3) node (oo){} node [xshift=0cm, yshift=0cm] {oo} (oo.center-|0,0) node [xshift=0cm, yshift=0cm] {y} -| (oo.center|-0,0) node [xshift=0cm, yshift=0cm] {x};
\end{tikzpicture}
\end{frame}
\begin{frame}[fragile,t]
\frametitle{}
\begin{tikzpicture}
\draw [thick,-latex](0,0) -- (5,0);
\draw [thick,-latex](0,0) -- (0,4.);
\draw [thick, violet, dotted] (4,3) node [xshift=0cm, yshift=0cm] {o} |- (0,0) node [xshift=0cm, yshift=0cm] {y} -| (0,0) node [xshift=0cm, yshift=0cm] {x};
\end{tikzpicture}
\end{document}





