I am relatively new to Tikz and am trying to draw a diagram with lines in it. Here is my MWE
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{matrix,positioning}
\usetikzlibrary{decorations.pathreplacing}
\begin{document}
\[
\begin{tikzpicture}
\draw (0,0.9) -- (3.0,0.9) -- (3.0,-0.9) -- (0,-0.9) -- (0,0.9);
\draw (1.0,-0.9) -- (1.0,0.9);
\draw (2.0,-0.9) -- (2.0,0.9);
\path (1.1,0.6) node (p9) {};
\path (1.1,0.2) node (p10) {};
\path (1.1,-0.2) node (p11) {};
\path (1.1,-0.6) node (p12) {};
\path (1.9,0.6) node (p13) {};
\path (1.9,0.2) node (p14) {};
\path (1.9,-0.2) node (p15) {};
\path (1.9,-0.6) node (p16) {};
\path (2.1,0.6) node (p17) {};
\path (2.1,0.2) node (p18) {};
\path (2.1,-0.2) node (p19) {};
\path (2.1,-0.6) node (p20) {};
\path (2.9,0.6) node (p21) {};
\path (2.9,0.2) node (p22) {};
\path (2.9,-0.2) node (p23) {};
\path (2.9,-0.6) node (p24) {};
\draw (p9) to [bend left=10] (p17);
\draw (p10) to [bend left=10] (p18);
\draw (p11) to [bend left=10] (p19);
\draw (p12) to [bend left=10] (p20);
\draw (p13) to [bend right=10] (p21);
\draw (p14) to [bend right=10] (p22);
\draw (p15) to [bend right=10] (p23);
\draw (p16) to [bend right=10] (p24);
\end{tikzpicture}
\]
\end{document}
This results in the following output
Can anyone explain why the curved lines don't appear to be hitting the correct nodes?
Edit: To clarify the situation, the question was concerned with why the lines were not apparently reaching the centre of the nodes in question. Solutions to this have been addressed in the answers below.
Best Answer
The curved lines hit the nodes but even empty nodes have a width and height. To show this the nodes in the second picture are drawn. Maybe you want to define
coordinate
s instead ofnode
s like in the third picture:Code: