I'm a beginner in TikZ trying to understand the coordinate system. Why do the first two examples give me the same result (a line close to the text, without the 1cm space that I expected in the second example)? I can get the result I expected with the simple presence of a non visible shape in (0,0), like the third example. What's the explanation for the behavior in the second example, where (0,0) doesn't act as the corner anymore? It seems that the lowest coordinates that are used in the code become the "origin" (lower left corner), is that the case?
Line1:\tikz \draw (0,0) -- (1,1);
Line2:\tikz \draw (1,0) -- (2,1);
Line3:\tikz \draw (0,0) -- (0,0) (1,0) -- (2,1);

baselineoption for how to alter this behavior. Another way to fix Line2 is\tikz\draw(0,0)(1,0)--(2,1);because(0,0)expands the bounding box. – Symbol 1 Apr 14 '21 at 02:16baselineor evenrotateorscale. Moreover, in spline elements (curves) the control points are also taken into account, so sometimes the bounding box is bigger than expected.overlaymodifiers makes thing invisible to the bounding box so you can have smaller than expected ones... – Rmano Apr 14 '21 at 05:47