It is possible to give in the coordinate of the point by an outside variable?
For example, I have a simple line:
\begin{document}
\draw (0,0) -- (5,5);
\end{document}
I would like to parametrize the x-coordinate, such as:
\begin{document}
*(some command that defines y)* y = 10;
\draw (0,y) -- (5,5+y);
\end{document}
I am familiar with the command coordinate: Define a variable in TikZ
But with it I need to add coordinate of the point. I would like to parametrize one coordinate.
Reason?
I have two drawings in the same Tikz picture, one above the other. It is very likely that I will want to adjust the distance between them. The solution above would enable me to simply "shift" one of the figures up or down by changing the value of y associated with every y coordinate.
shift
it. For example tex.stackexchange.com/questions/238330/…