I'm trying to keep all of the labels at the same distance from the line. I've tried separating the nodes, but even if I remove all of the nodes except '1' and 'N+1', the three character label is higher. I've also tried:
- x-scale
- label distance
- label size = \tiny
- inner sep = 0pt
- outer sep = 0pt
But nothing seems to allow the three character labels to assume the same relative position to the line. Any advice? I've attached a quick-copy complete code as well as a picture.
\documentclass[12pt, twoside]{article}
\usepackage{tikz}
\tikzset{every node/.style={draw,shape=circle}}
\begin{document}
\begin{figure}
\centering
\begin{tikzpicture}
\tikzstyle{every node}=[draw,shape=circle]
\draw[very thick](0,0) node[circle,fill,inner sep=1pt,label=above:$1$](1){} -- (1,0);
\draw[very thick](1,0) node[circle,fill,inner sep=1pt,label=above:$2$](2){} -- (2,0);
\draw[very thick](2,0) -- (4,0);
\draw[very thick](4,0) node[circle,fill,inner sep=1pt,label=above:$i-1$](i-1){} -- (5,0);
\draw[very thick](5,0) node[circle,fill,inner sep=1pt,label=above:$i$](i){} -- (6,0);
\draw[very thick](6,0) node[circle,fill,inner sep=1pt,label=above:$i+1$](i+1){} -- (7,0);
\draw[very thick](7,0) -- (9,0);
\draw[dotted, very thick](9,0) node[circle,fill,inner sep=1pt,label=above:$N$](N){} -- (10,0)
node[circle,fill,inner sep=1pt,label=above:$N+1$](N+1){};
\end{tikzpicture}
\caption{Visualization of meshing elements and intervals including the complex $N+1$ node}
\label{fig:nodeline}
\end{figure}
\end{document}