# Text alignment in TikZ

The letters i and y aren't aligned correctly. the hook of y is above the baseline of the i. How do I get them to be aligned correctly? The MWE is below.

\documentclass{standalone}
\usepackage{tikz}

\begin{document}
\begin{tikzpicture}
\draw (0,0) -- (1,0) -- (0,-1);
\path[anchor=mid] (0,0) node[left] {i} node[right] {y};
\end{tikzpicture}
\end{document}


As you can see by the code:

Maybe you are more satisfied with the following:

\documentclass{standalone}
\usepackage{tikz}
\usetikzlibrary{positioning}

\begin{document}
\begin{tikzpicture}
\draw (0,0) -- (1,0) -- (0,-1);
\path[anchor=mid] (0,0) node[base left] {i} node[base right] {y};
\end{tikzpicture}
\end{document}

• Nice! Thanks to your answer I could find the best placement: \path (0,0) node[mid left] {i} node[mid right] {y};. Thank you very much! – Levy Jul 28 '19 at 16:12